Back to index

courier  0.68.2
Defines | Typedefs
lock.h File Reference
#include <errno.h>
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define gl_lock_define(STORAGECLASS, NAME)
#define gl_lock_define_initialized(STORAGECLASS, NAME)
#define glthread_lock_init(NAME)   0
#define glthread_lock_lock(NAME)   0
#define glthread_lock_unlock(NAME)   0
#define glthread_lock_destroy(NAME)   0
#define gl_rwlock_define(STORAGECLASS, NAME)
#define gl_rwlock_define_initialized(STORAGECLASS, NAME)
#define glthread_rwlock_init(NAME)   0
#define glthread_rwlock_rdlock(NAME)   0
#define glthread_rwlock_wrlock(NAME)   0
#define glthread_rwlock_unlock(NAME)   0
#define glthread_rwlock_destroy(NAME)   0
#define gl_recursive_lock_define(STORAGECLASS, NAME)
#define gl_recursive_lock_define_initialized(STORAGECLASS, NAME)
#define glthread_recursive_lock_init(NAME)   0
#define glthread_recursive_lock_lock(NAME)   0
#define glthread_recursive_lock_unlock(NAME)   0
#define glthread_recursive_lock_destroy(NAME)   0
#define gl_once_define(STORAGECLASS, NAME)   STORAGECLASS gl_once_t NAME = 0;
#define glthread_once(ONCE_CONTROL, INITFUNCTION)   (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0)
#define gl_lock_init(NAME)
#define gl_lock_lock(NAME)
#define gl_lock_unlock(NAME)
#define gl_lock_destroy(NAME)
#define gl_rwlock_init(NAME)
#define gl_rwlock_rdlock(NAME)
#define gl_rwlock_wrlock(NAME)
#define gl_rwlock_unlock(NAME)
#define gl_rwlock_destroy(NAME)
#define gl_recursive_lock_init(NAME)
#define gl_recursive_lock_lock(NAME)
#define gl_recursive_lock_unlock(NAME)
#define gl_recursive_lock_destroy(NAME)
#define gl_once(NAME, INITFUNCTION)

Typedefs

typedef int gl_lock_t
typedef int gl_rwlock_t
typedef int gl_recursive_lock_t
typedef int gl_once_t

Define Documentation

#define gl_lock_define (   STORAGECLASS,
  NAME 
)

Definition at line 774 of file lock.h.

#define gl_lock_define_initialized (   STORAGECLASS,
  NAME 
)

Definition at line 775 of file lock.h.

#define gl_lock_destroy (   NAME)
Value:
do                                     \
     {                                    \
       if (glthread_lock_destroy (&NAME)) \
         abort ();                        \
     }                                    \
   while (0)

Definition at line 839 of file lock.h.

#define gl_lock_init (   NAME)
Value:
do                                  \
     {                                 \
       if (glthread_lock_init (&NAME)) \
         abort ();                     \
     }                                 \
   while (0)

Definition at line 818 of file lock.h.

#define gl_lock_lock (   NAME)
Value:
do                                  \
     {                                 \
       if (glthread_lock_lock (&NAME)) \
         abort ();                     \
     }                                 \
   while (0)

Definition at line 825 of file lock.h.

#define gl_lock_unlock (   NAME)
Value:
do                                    \
     {                                   \
       if (glthread_lock_unlock (&NAME)) \
         abort ();                       \
     }                                   \
   while (0)

Definition at line 832 of file lock.h.

#define gl_once (   NAME,
  INITFUNCTION 
)
Value:
do                                           \
     {                                          \
       if (glthread_once (&NAME, INITFUNCTION)) \
         abort ();                              \
     }                                          \
   while (0)

Definition at line 918 of file lock.h.

#define gl_once_define (   STORAGECLASS,
  NAME 
)    STORAGECLASS gl_once_t NAME = 0;

Definition at line 805 of file lock.h.

#define gl_recursive_lock_define (   STORAGECLASS,
  NAME 
)

Definition at line 795 of file lock.h.

#define gl_recursive_lock_define_initialized (   STORAGECLASS,
  NAME 
)

Definition at line 796 of file lock.h.

Value:
do                                               \
     {                                              \
       if (glthread_recursive_lock_destroy (&NAME)) \
         abort ();                                  \
     }                                              \
   while (0)

Definition at line 908 of file lock.h.

Value:
do                                            \
     {                                           \
       if (glthread_recursive_lock_init (&NAME)) \
         abort ();                               \
     }                                           \
   while (0)

Definition at line 887 of file lock.h.

Value:
do                                            \
     {                                           \
       if (glthread_recursive_lock_lock (&NAME)) \
         abort ();                               \
     }                                           \
   while (0)

Definition at line 894 of file lock.h.

Value:
do                                              \
     {                                             \
       if (glthread_recursive_lock_unlock (&NAME)) \
         abort ();                                 \
     }                                             \
   while (0)

Definition at line 901 of file lock.h.

#define gl_rwlock_define (   STORAGECLASS,
  NAME 
)

Definition at line 784 of file lock.h.

#define gl_rwlock_define_initialized (   STORAGECLASS,
  NAME 
)

Definition at line 785 of file lock.h.

#define gl_rwlock_destroy (   NAME)
Value:
do                                       \
     {                                      \
       if (glthread_rwlock_destroy (&NAME)) \
         abort ();                          \
     }                                      \
   while (0)

Definition at line 877 of file lock.h.

#define gl_rwlock_init (   NAME)
Value:
do                                    \
     {                                   \
       if (glthread_rwlock_init (&NAME)) \
         abort ();                       \
     }                                   \
   while (0)

Definition at line 849 of file lock.h.

#define gl_rwlock_rdlock (   NAME)
Value:
do                                      \
     {                                     \
       if (glthread_rwlock_rdlock (&NAME)) \
         abort ();                         \
     }                                     \
   while (0)

Definition at line 856 of file lock.h.

#define gl_rwlock_unlock (   NAME)
Value:
do                                      \
     {                                     \
       if (glthread_rwlock_unlock (&NAME)) \
         abort ();                         \
     }                                     \
   while (0)

Definition at line 870 of file lock.h.

#define gl_rwlock_wrlock (   NAME)
Value:
do                                      \
     {                                     \
       if (glthread_rwlock_wrlock (&NAME)) \
         abort ();                         \
     }                                     \
   while (0)

Definition at line 863 of file lock.h.

#define glthread_lock_destroy (   NAME)    0

Definition at line 779 of file lock.h.

#define glthread_lock_init (   NAME)    0

Definition at line 776 of file lock.h.

#define glthread_lock_lock (   NAME)    0

Definition at line 777 of file lock.h.

#define glthread_lock_unlock (   NAME)    0

Definition at line 778 of file lock.h.

#define glthread_once (   ONCE_CONTROL,
  INITFUNCTION 
)    (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0)

Definition at line 807 of file lock.h.

#define glthread_recursive_lock_destroy (   NAME)    0

Definition at line 800 of file lock.h.

#define glthread_recursive_lock_init (   NAME)    0

Definition at line 797 of file lock.h.

#define glthread_recursive_lock_lock (   NAME)    0

Definition at line 798 of file lock.h.

#define glthread_recursive_lock_unlock (   NAME)    0

Definition at line 799 of file lock.h.

#define glthread_rwlock_destroy (   NAME)    0

Definition at line 790 of file lock.h.

#define glthread_rwlock_init (   NAME)    0

Definition at line 786 of file lock.h.

#define glthread_rwlock_rdlock (   NAME)    0

Definition at line 787 of file lock.h.

#define glthread_rwlock_unlock (   NAME)    0

Definition at line 789 of file lock.h.

#define glthread_rwlock_wrlock (   NAME)    0

Definition at line 788 of file lock.h.


Typedef Documentation

typedef int gl_lock_t

Definition at line 773 of file lock.h.

typedef int gl_once_t

Definition at line 804 of file lock.h.

typedef int gl_recursive_lock_t

Definition at line 794 of file lock.h.

typedef int gl_rwlock_t

Definition at line 783 of file lock.h.