forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Atomic operations

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Sebastian



Joined: 20 Feb 2008
Posts: 177

PostPosted: Fri Nov 07, 2008 4:48 pm    Post subject: Atomic operations Reply with quote

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
View user's profile Send private message
Martin



Joined: 09 Sep 2004
Posts: 43

PostPosted: Tue Feb 17, 2009 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group