Click here to Skip to main content
15,905,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CCriticalSection question Pin
Alexander M.,5-May-04 4:45
Alexander M.,5-May-04 4:45 
GeneralRe: CCriticalSection question Pin
jmkhael5-May-04 4:47
jmkhael5-May-04 4:47 
GeneralRe: CCriticalSection question Pin
Alexander M.,5-May-04 4:48
Alexander M.,5-May-04 4:48 
GeneralRe: CCriticalSection question Pin
jmkhael5-May-04 4:49
jmkhael5-May-04 4:49 
GeneralRe: CCriticalSection question Pin
Alexander M.,5-May-04 4:53
Alexander M.,5-May-04 4:53 
GeneralRe: CCriticalSection question Pin
jmkhael5-May-04 4:54
jmkhael5-May-04 4:54 
GeneralRe: CCriticalSection question Pin
oferbgu5-May-04 4:59
oferbgu5-May-04 4:59 
GeneralRe: CCriticalSection question Pin
Paul Ranson5-May-04 8:39
Paul Ranson5-May-04 8:39 
To do what you are asking you will have to replace the CRITICAL_SECTION with a waitable event of some form. Then you can use WaitForMultipleEvents to wait for both the currently CRITICAL_SECTION protected resource and for the other events that may take place.

It seems to me that this scenario may imply that it's worth considering the design of your app, just to be sure there isn't a simpler solution. I treat CRITICAL_SECTIONs as efficient lightweight objects used to protect shared resources that aren't held very long.

Paul
GeneralRe: CCriticalSection question Pin
Paul Ranson5-May-04 8:40
Paul Ranson5-May-04 8:40 
Generalaccess other system resources on network by its IP Pin
Zeeshan Bilal5-May-04 1:26
Zeeshan Bilal5-May-04 1:26 
GeneralRe: access other system resources on network by its IP Pin
toxcct5-May-04 1:37
toxcct5-May-04 1:37 
GeneralRe: access other system resources on network by its IP Pin
David Crow5-May-04 2:25
David Crow5-May-04 2:25 
GeneralPublic Variable access : New problem Pin
Krugger4045-May-04 1:23
Krugger4045-May-04 1:23 
GeneralRe: Public Variable access : New problem Pin
jmkhael5-May-04 1:34
jmkhael5-May-04 1:34 
GeneralRe: Public Variable access : New problem Pin
Michael P Butler5-May-04 1:38
Michael P Butler5-May-04 1:38 
GeneralRe: Public Variable access : New problem Pin
nguyenvhn5-May-04 1:40
nguyenvhn5-May-04 1:40 
GeneralRe: Public Variable access : New problem Pin
User 66585-May-04 2:31
User 66585-May-04 2:31 
GeneralCreateFile returns error 32 Pin
BeeTel5-May-04 1:12
BeeTel5-May-04 1:12 
GeneralRe: CreateFile returns error 32 Pin
David Crow5-May-04 2:32
David Crow5-May-04 2:32 
GeneralRe: CreateFile returns error 32 Pin
Alexander M.,5-May-04 4:55
Alexander M.,5-May-04 4:55 
GeneralData Verification problem Pin
IceBerG715-May-04 0:55
IceBerG715-May-04 0:55 
GeneralRe: Data Verification problem Pin
Michael P Butler5-May-04 1:44
Michael P Butler5-May-04 1:44 
GeneralRe: Data Verification problem Pin
hasansheik5-May-04 2:32
hasansheik5-May-04 2:32 
GeneralBrowse For Folder settings - help required Pin
nihal_kashinath5-May-04 0:43
nihal_kashinath5-May-04 0:43 
Generalsocket Pin
Ni@m5-May-04 0:42
Ni@m5-May-04 0:42 

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.