Message 1 of 1
Multithreading : MThreadAsync sends Maya to sleep?

Not applicable
04-16-2012
06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I need one separate thread in Maya, which is updating a global variable all the time, without the timeline running. I tried the threadTestWithLocksCmd example plugin and found that MThreadAsync is that what I am searching for. I removed all the irrelevant code so that only one required asynchronous thread is created and does its calculation, but to my surprise the thread sends Maya to sleep. After the calculation is done, Maya works again. Am I looking onto the wrong API ?
I need one separate thread in Maya, which is updating a global variable all the time, without the timeline running. I tried the threadTestWithLocksCmd example plugin and found that MThreadAsync is that what I am searching for. I removed all the irrelevant code so that only one required asynchronous thread is created and does its calculation, but to my surprise the thread sends Maya to sleep. After the calculation is done, Maya works again. Am I looking onto the wrong API ?