AgentX++  2.0.5
agentx_threads.h
Go to the documentation of this file.
1 /*_############################################################################
2  _##
3  _## agentx_threads.h
4  _##
5  _##
6  _## AgentX++ 2
7  _## -------------------------------------
8  _## Copyright (C) 2000-2013 - Frank Fock
9  _##
10  _## Use of this software is subject to the license agreement you received
11  _## with this software and which can be downloaded from
12  _## http://www.agentpp.com
13  _##
14  _## This is licensed software and may not be used in a commercial
15  _## environment, except for evaluation purposes, unless a valid
16  _## license has been purchased.
17  _##
18  _##########################################################################*/
19 
20 
21 #ifndef _agentx_threads_h_
22 #define _agentx_threads_h_
23 
24 #include <agent_pp/agent++.h>
25 #include <agent_pp/threads.h>
26 
27 #ifndef _THREADS
28 #error "To use AgentX++ threads must be enabled in AGENT++"
29 #endif
30 
31 #define SYNCHRONIZED(x) { Lock _synchronize(*this); x }
32 
33 #endif