Silverfrost Forums

Welcome to our forums

Atomic operations

7 Nov 2008 3:48 #3985

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.

17 Feb 2009 9:16 #4310

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.

Please login to reply.