• Welcome to World Machine Community. Please login or sign up.
October 14, 2019, 09:30:33 am


Read the Development Diary for an inside look at World Machine's progress!

Post reply

The message has the following error or errors that must be corrected before continuing:
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Note: this post will not display until it's been approved by a moderator.
Other options
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview

Topic summary

Posted by Stephen
 - September 28, 2011, 10:18:00 am
Critical sections should work just fine -- I'm not sure why they're crashing but as long as you have initialized them in the object constructor and cleanup at destruction you should have no issues!

Posted by CKlosters
 - September 28, 2011, 06:37:18 am
Just figured out it's better to use Mutex...  sorry about that!

Posted by CKlosters
 - September 28, 2011, 04:38:16 am

What would be the best way to force a process to run single threaded (not sharing or accessing resources).
I'm currently working with the ANN library and need to lock some functionality on one thread.

I have tried incorporating critical sections but as soon as it enters the critical sections world machine crashes.
Any suggestions? Would there maybe be a WM function set availble that would let me access or lock threads?

Any help would be greatly appreciated!