Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDirectShow StillCap problem Pin
Ruzicka4-Apr-02 21:37
Ruzicka4-Apr-02 21:37 
Generalbasic_string Pin
Niklas L4-Apr-02 21:37
Niklas L4-Apr-02 21:37 
GeneralRe: basic_string Pin
Niklas L4-Apr-02 21:39
Niklas L4-Apr-02 21:39 
GeneralRe: basic_string Pin
Joaquín M López Muñoz4-Apr-02 22:32
Joaquín M López Muñoz4-Apr-02 22:32 
GeneralRe: basic_string Pin
Joao Vaz4-Apr-02 23:49
Joao Vaz4-Apr-02 23:49 
GeneralRe: basic_string Pin
Tim Smith5-Apr-02 3:48
Tim Smith5-Apr-02 3:48 
GeneralRe: basic_string Pin
Joao Vaz5-Apr-02 4:56
Joao Vaz5-Apr-02 4:56 
GeneralRe: basic_string Pin
Joaquín M López Muñoz5-Apr-02 5:40
Joaquín M López Muñoz5-Apr-02 5:40 
I strongly disagree with this approach for STL thread safety. It is consistent and would work, but IMHO almost never will suit any programmer's need. Consider for example a for_each operation performed on a std::vector: as for_each only sees the vector thru iterators, this implies that the operation locks and unlocks the vector every time it accesses it. In many occasions one will need that the entire for_each operation is done within a single lock section. Defining appropriate interfaces to achieve this in a generic manner is probably impossible. In more contrived examples, one seeks atomicity for several such operations executed in sequence, and now things become much more complicated than the simpler approach of doing the locking separately. In a nutshell: "atomicity" is too program-specific a concept to be reduced to access-level locking.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: basic_string Pin
Joao Vaz5-Apr-02 6:03
Joao Vaz5-Apr-02 6:03 
GeneralRe: basic_string Pin
Niklas L5-Apr-02 1:12
Niklas L5-Apr-02 1:12 
GeneralPLEASE HELP ME Pin
cycosi4-Apr-02 21:12
cycosi4-Apr-02 21:12 
GeneralRe: PLEASE HELP ME Pin
Mazdak4-Apr-02 21:27
Mazdak4-Apr-02 21:27 
GeneralRe: PLEASE HELP ME Pin
Christian Graus4-Apr-02 21:37
protectorChristian Graus4-Apr-02 21:37 
GeneralRe: PLEASE HELP ME Pin
cycosi4-Apr-02 22:41
cycosi4-Apr-02 22:41 
GeneralRe: PLEASE HELP ME Pin
Christian Graus4-Apr-02 22:58
protectorChristian Graus4-Apr-02 22:58 
GeneralRe: PLEASE HELP ME Pin
Tomasz Sowinski5-Apr-02 6:02
Tomasz Sowinski5-Apr-02 6:02 
GeneralVery Basic Question. Pin
Mazdak4-Apr-02 20:14
Mazdak4-Apr-02 20:14 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 20:28
Joaquín M López Muñoz4-Apr-02 20:28 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 20:34
Mazdak4-Apr-02 20:34 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 20:44
Joaquín M López Muñoz4-Apr-02 20:44 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 20:54
Mazdak4-Apr-02 20:54 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 21:08
Joaquín M López Muñoz4-Apr-02 21:08 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 21:24
Mazdak4-Apr-02 21:24 
GeneralRe: Very Basic Question. Pin
Niklas L4-Apr-02 21:08
Niklas L4-Apr-02 21:08 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 21:22
Mazdak4-Apr-02 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.