pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cma_thr.h File Reference
#include "hp_pthread.h"
#include <errno.h>
Include dependency graph for cma_thr.h:

Go to the source code of this file.

Macros

#define pthread_mutex_init(mp, ap)   pthread_mutex_init((mp), ((ap) ? *((pthread_mutexattr_t *) (ap)) : pthread_mutexattr_default))
 
#define pthread_cond_init(cp, ap)   pthread_cond_init((cp), ((ap) ? *((pthread_condattr_t *) (ap)) : pthread_condattr_default))
 
#define pthread_cond_wait(cp, mp)   (pthread_cond_wait(cp,mp) ? errno : 0)
 
#define pthread_cond_timedwait(cp, mp, to)   (pthread_cond_timedwait(cp,mp,to) ? errno : 0)
 
#define pthread_attr_t   int
 
#define pthread_attr_init(ap)   (*(ap) = 0)
 
#define PTHREAD_CREATE_DETACHED   1
 
#define PTHREAD_CREATE_JOINABLE   0
 
#define PTHREAD_ONCE_INIT   { 0 }
 
#define pthread_attr_setdetachstate(ap, state)   ((*(ap)) = state)
 
#define pthread_create(tidp, attrp, func, arg)
 

Macro Definition Documentation

◆ pthread_attr_init

#define pthread_attr_init (   ap)    (*(ap) = 0)

Definition at line 51 of file cma_thr.h.

◆ pthread_attr_setdetachstate

#define pthread_attr_setdetachstate (   ap,
  state 
)    ((*(ap)) = state)

Definition at line 58 of file cma_thr.h.

◆ pthread_attr_t

#define pthread_attr_t   int

Definition at line 50 of file cma_thr.h.

◆ pthread_cond_init

#define pthread_cond_init (   cp,
  ap 
)    pthread_cond_init((cp), ((ap) ? *((pthread_condattr_t *) (ap)) : pthread_condattr_default))

Definition at line 35 of file cma_thr.h.

◆ pthread_cond_timedwait

#define pthread_cond_timedwait (   cp,
  mp,
  to 
)    (pthread_cond_timedwait(cp,mp,to) ? errno : 0)

Definition at line 42 of file cma_thr.h.

◆ pthread_cond_wait

#define pthread_cond_wait (   cp,
  mp 
)    (pthread_cond_wait(cp,mp) ? errno : 0)

Definition at line 39 of file cma_thr.h.

◆ pthread_create

#define pthread_create (   tidp,
  attrp,
  func,
  arg 
)
Value:
(pthread_create((tidp), pthread_attr_default, (func), (arg)), \
(((attrp) && *((int *) attrp)) ? pthread_detach((tidp)) : 0))

Definition at line 60 of file cma_thr.h.

◆ PTHREAD_CREATE_DETACHED

#define PTHREAD_CREATE_DETACHED   1

Definition at line 53 of file cma_thr.h.

◆ PTHREAD_CREATE_JOINABLE

#define PTHREAD_CREATE_JOINABLE   0

Definition at line 54 of file cma_thr.h.

◆ pthread_mutex_init

#define pthread_mutex_init (   mp,
  ap 
)    pthread_mutex_init((mp), ((ap) ? *((pthread_mutexattr_t *) (ap)) : pthread_mutexattr_default))

Definition at line 26 of file cma_thr.h.

◆ PTHREAD_ONCE_INIT

#define PTHREAD_ONCE_INIT   { 0 }

Definition at line 56 of file cma_thr.h.

timeout::arg
void * arg
Definition: timeout.h:28
pthread_create
#define pthread_create(tidp, attrp, func, arg)
Definition: cma_thr.h:60
pthread_attr_default
pthread_attr_t pthread_attr_default