View previous topic :: View next topic |
Author |
Message |
Sebastian
Joined: 20 Feb 2008 Posts: 177
|
Posted: Fri Nov 07, 2008 4:48 pm Post subject: Atomic operations |
|
|
Hello,
is there some possibility to enclose a short block of code (variable assignment and integer arithmetics) in an atomic operation? Like what the LOCK/ENDLOCK does for CRL.
Thanks. |
|
Back to top |
|
|
Martin
Joined: 09 Sep 2004 Posts: 43
|
Posted: Tue Feb 17, 2009 10:16 pm Post subject: |
|
|
I know this post is quite old, but in case you are still looking :- you should be able to call out to the standard win 32 routines InitializeCriticalSection, EnterCriticalSection, LeaveCriticalSection and DeleteCriticalSection. These are declared in win32api.ins / msw32mod. |
|
Back to top |
|
|
|