HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OP_Lock.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OP_Lock.h (OP Library, C++)
7  *
8  * COMMENTS: This header allows us to enable/disable locking when cooking.
9  */
10 
11 #ifndef __OP_LOCK_H_INCLUDED__
12 #define __OP_LOCK_H_INCLUDED__
13 
14 #include "OP_API.h"
15 
16 #include <UT/UT_Lock.h>
17 
18 // Modify this to enable/disable node cook locking
19 #define OP_LOCKS 1
20 
21 #if OP_LOCKS
22  typedef UT_Lock OP_Lock;
24 #else
25  typedef UT_NullLock OP_Lock;
26  typedef UT_NullLock OP_CookLock;
27 #endif
28 
29 #endif // __OP_LOCK_H_INCLUDED__
UT_Lock OP_CookLock
Definition: OP_Lock.h:23
UT_Lock OP_Lock
Definition: OP_Lock.h:22