|
-
May 16th, 2003, 09:39 AM
#1
Critical region
I have a number of threads that may call a single function, but I want to protect this function with a critical region such that if one thread is in the function all the others must wait for access.
Any ideas?
-
May 16th, 2003, 09:43 AM
#2
SyncLock Me
'Code in here
End SyncLock
????
-
May 16th, 2003, 09:55 AM
#3
Even easier than that it seems - just put System.Runtime.CompilerServices.MethodImplAttribute attribute on the function signature and specify Synchronised...sweet.
-
May 16th, 2003, 10:25 AM
#4
Fanatic Member
Hey by the way, I'm interested in trying your EventVB thingy but the Overview page:
http://www.merrioncomputing.com/EventVB/Overview.htm
...seems to be busted. edit: aha there's the rest of the docs!
-
May 16th, 2003, 10:54 AM
#5
The online help is slow and combersome...you'd be as well to download the EventVB.chm compiled help file...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|