Sockins
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 2 articles for 0.230 sec
"Mihajlo Cvetanović" <mcvetanovic@gmail> ha scritto nel messaggio news:ufaFTmEoKHA.1552@TK2MSFTNGP04.phx.gbl... > First, you need only one critical section, and its name should relate to > the data it guards, not to the entities that use it: > > CRITICAL_SECTION csMySharedData; > > Your current solution does not prevent one consumer and one producer to > access the same data at the same     

Group: microsoft.public.vc.language · Group Profile · Search for Sockins in microsoft.public.vc.language
Author: Larry
Date: Jan 28, 2010 13:03

"Ulrich Eckhardt" <eckhardt@satorlaser.com> ha scritto nel messaggio news:5bu837-5f.ln1@satorlaser.homedns.org... Sorry, but both wraps are wrong. You have to initialise the critical sections on startup and delete them when you don't need them any more (here before main() returns). In between, you can use them, e.g. you have to lock one (EnterCriticalSection) whenever you want
Show full article (5.16Kb) · Show article thread
    

Group: microsoft.public.vc.language · Group Profile · Search for Sockins in microsoft.public.vc.language
Author: Larry
Date: Jan 28, 2010 09:50

Show full article (5.35Kb)