1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The thread-safety code is now subject to conditional compilation.

Both the library and the user code need to be rebuilt with the
  preprocessor symbol __THREAD_SAFE defined to get thread-safe
  code.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14843 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-02-28 10:07:35 +00:00
parent f51faeb168
commit 1df294c07e
61 changed files with 488 additions and 319 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_headers.h,v 1.10 2005-02-27 21:58:21 obarthel Exp $
* $Id: stdlib_headers.h,v 1.11 2005-02-28 10:07:32 obarthel Exp $
*
* :ts=4
*
@ -198,10 +198,9 @@ extern unsigned int NOCOMMON __random_seed;
/****************************************************************************/
extern struct SignalSemaphore * NOCOMMON __memory_semaphore;
extern struct MemoryTree NOCOMMON __memory_tree;
extern struct MinList NOCOMMON __memory_list;
extern APTR NOCOMMON __memory_pool;
extern struct MemoryTree NOCOMMON __memory_tree;
extern struct MinList NOCOMMON __memory_list;
extern APTR NOCOMMON __memory_pool;
/****************************************************************************/
@ -263,6 +262,28 @@ extern int NOCOMMON __default_puddle_size;
/****************************************************************************/
#if defined(__THREAD_SAFE)
/****************************************************************************/
extern void __memory_lock(void);
extern void __memory_unlock(void);
/****************************************************************************/
#else
/****************************************************************************/
#define __memory_lock() ((void)0)
#define __memory_unlock() ((void)0)
/****************************************************************************/
#endif /* __THREAD_SAFE */
/****************************************************************************/
#ifndef _STDLIB_PROTOS_H
#include "stdlib_protos.h"
#endif /* _STDLIB_PROTOS_H */