GLOBAL -> *.h files
This commit is contained in:
parent
51d0612f59
commit
504268d5b3
@ -71,7 +71,7 @@
|
|||||||
#endif /* THREADS */
|
#endif /* THREADS */
|
||||||
|
|
||||||
#define GLOBAL_Stream Yap_global->Stream_
|
#define GLOBAL_Stream Yap_global->Stream_
|
||||||
#if defined(THREADS)
|
#if defined(THREADS)||defined(YAPOR)
|
||||||
#define GLOBAL_StreamDescLock Yap_global->StreamDescLock_
|
#define GLOBAL_StreamDescLock Yap_global->StreamDescLock_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ typedef struct global_data {
|
|||||||
#endif /* THREADS */
|
#endif /* THREADS */
|
||||||
|
|
||||||
struct stream_desc* Stream_;
|
struct stream_desc* Stream_;
|
||||||
#if defined(THREADS)
|
#if defined(THREADS)||defined(YAPOR)
|
||||||
lockvar StreamDescLock_;
|
lockvar StreamDescLock_;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ static void InitGlobal(void) {
|
|||||||
#endif /* THREADS */
|
#endif /* THREADS */
|
||||||
|
|
||||||
|
|
||||||
#if defined(THREADS)
|
#if defined(THREADS)||defined(YAPOR)
|
||||||
INIT_LOCK(GLOBAL_StreamDescLock);
|
INIT_LOCK(GLOBAL_StreamDescLock);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ static void RestoreGlobal(void) {
|
|||||||
#endif /* THREADS */
|
#endif /* THREADS */
|
||||||
|
|
||||||
|
|
||||||
#if defined(THREADS)
|
#if defined(THREADS)||defined(YAPOR)
|
||||||
REINIT_LOCK(GLOBAL_StreamDescLock);
|
REINIT_LOCK(GLOBAL_StreamDescLock);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user