#include <MThreadAsync.h>
MThreadAsync class. Allows creation of asynchronous threads.
Static Public Member Functions | |
| static MStatus | init () |
| static MStatus | createTask (MThreadFunc func, void *data, MThreadAsyncCallbackFunc afunc, MThreadRootTask *root) |
| static void | release () |
| MStatus MThreadAsync::init | ( | ) | [static] |
Initialize asynchronous thread creation mechanism. No threads are created by this call. Each call to init increases a reference count on the class, each call to release() reduces the reference count. When the reference count reaches zero the threads are deleted.
| MStatus MThreadAsync::createTask | ( | MThreadFunc | func, | |
| void * | data, | |||
| MThreadAsyncCallbackFunc | afunc, | |||
| MThreadRootTask * | root | |||
| ) | [static] |
Create a single task. createMapping must have been called before calling this method.
| [in] | func | pointer to function to be executed by threads |
| [in] | data | data for function |
| [in] | afunc | pointer to callback function to be executed by threads |
| [in] | root | root task |
| void MThreadAsync::release | ( | ) | [static] |
This function decreases the reference count on the class. When the reference count reaches zero the threads are deleted.
| Autodesk® Maya® 2010 © 1997-2009 Autodesk, Inc. All rights reserved. |
Generated with
|