Philipp Tomsich
Edwin Steiner
- $Id: global.h 727 2003-12-11 10:52:40Z edwin $
+ $Id: global.h 737 2003-12-13 18:19:19Z stefan $
*/
#include "types.h"
#include "toolbox/list.h"
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+#include <pthread.h>
+#endif
+
#define _GNU_SOURCE
if ((utf_ptr)[-1] != ';') \
(errorflag) = true; }} while(0)
+
+/* Synchronization ************************************************************/
+
+extern pthread_mutex_t cast_mutex;
+extern pthread_mutex_t compiler_mutex;
+
#endif /* _GLOBAL_H */
#include "toolbox/loging.h"
#include "toolbox/memory.h"
+#if defined(NATIVE_THREADS)
+pthread_mutex_t cast_mutex = PTHREAD_MUTEX_INITIALIZER;
+pthread_mutex_t compiler_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
static classinfo *class_java_lang_ThreadDeath;
Philipp Tomsich
Edwin Steiner
- $Id: global.h 727 2003-12-11 10:52:40Z edwin $
+ $Id: global.h 737 2003-12-13 18:19:19Z stefan $
*/
#include "types.h"
#include "toolbox/list.h"
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+#include <pthread.h>
+#endif
+
#define _GNU_SOURCE
if ((utf_ptr)[-1] != ';') \
(errorflag) = true; }} while(0)
+
+/* Synchronization ************************************************************/
+
+extern pthread_mutex_t cast_mutex;
+extern pthread_mutex_t compiler_mutex;
+
#endif /* _GLOBAL_H */
#include "toolbox/loging.h"
#include "toolbox/memory.h"
+#if defined(NATIVE_THREADS)
+pthread_mutex_t cast_mutex = PTHREAD_MUTEX_INITIALIZER;
+pthread_mutex_t compiler_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
static classinfo *class_java_lang_ThreadDeath;