00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: EXPR_Lock.h (EXPR Library, C++) 00014 * 00015 * COMMENTS: This header allows us to enable/disable locking when evaluating 00016 * parameters and hscript expressions. 00017 */ 00018 00019 #ifndef __EXPR_LOCK_H_INCLUDED__ 00020 #define __EXPR_LOCK_H_INCLUDED__ 00021 00022 #include "EXPR_API.h" 00023 00024 #include <UT/UT_Lock.h> 00025 00026 // Modify this to enable/disable parm expr locking 00027 #define EXPR_LOCKS 0 00028 00029 #if EXPR_LOCKS 00030 typedef UT_Lock EXPR_Lock; 00031 #else 00032 typedef UT_NullLock EXPR_Lock; 00033 #endif 00034 00035 typedef UT_AutoLockType<EXPR_Lock> EXPR_AutoLock; 00036 00037 #endif // __EXPR_LOCK_H_INCLUDED__
1.5.9