00001 /*_############################################################################ 00002 _## 00003 _## agentx_threads.h 00004 _## 00005 _## 00006 _## AgentX++ v1.4.17 00007 _## ------------------------------------- 00008 _## Copyright (C) 2000-2009 - Frank Fock 00009 _## 00010 _## Use of this software is subject to the license agreement you received 00011 _## with this software and which can be downloaded from 00012 _## http://www.agentpp.com 00013 _## 00014 _## This is licensed software and may not be used in a commercial 00015 _## environment, except for evaluation purposes, unless a valid 00016 _## license has been purchased. 00017 _## 00018 _## Last updated: Tue May 26 23:31:10 CEST 2009 00019 _## 00020 _##########################################################################*/ 00021 00022 00023 #ifndef _agentx_threads_h_ 00024 #define _agentx_threads_h_ 00025 00026 #include <agent_pp/agent++.h> 00027 #include <agent_pp/threads.h> 00028 00029 #ifndef _THREADS 00030 #error "To use AgentX++ threads must be enabled in AGENT++" 00031 #endif 00032 00033 #define SYNCHRONIZED(x) { Lock _synchronize(*this); x } 00034 00035 #endif