Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include
File: pthread.h
extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
[1000] Fix | Delete
pthread_mutex_t *__restrict __mutex,
[1001] Fix | Delete
const struct timespec *__restrict __abstime)
[1002] Fix | Delete
__nonnull ((1, 2, 3));
[1003] Fix | Delete
[1004] Fix | Delete
/* Functions for handling condition variable attributes. */
[1005] Fix | Delete
[1006] Fix | Delete
/* Initialize condition variable attribute ATTR. */
[1007] Fix | Delete
extern int pthread_condattr_init (pthread_condattr_t *__attr)
[1008] Fix | Delete
__THROW __nonnull ((1));
[1009] Fix | Delete
[1010] Fix | Delete
/* Destroy condition variable attribute ATTR. */
[1011] Fix | Delete
extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
[1012] Fix | Delete
__THROW __nonnull ((1));
[1013] Fix | Delete
[1014] Fix | Delete
/* Get the process-shared flag of the condition variable attribute ATTR. */
[1015] Fix | Delete
extern int pthread_condattr_getpshared (const pthread_condattr_t *
[1016] Fix | Delete
__restrict __attr,
[1017] Fix | Delete
int *__restrict __pshared)
[1018] Fix | Delete
__THROW __nonnull ((1, 2));
[1019] Fix | Delete
[1020] Fix | Delete
/* Set the process-shared flag of the condition variable attribute ATTR. */
[1021] Fix | Delete
extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
[1022] Fix | Delete
int __pshared) __THROW __nonnull ((1));
[1023] Fix | Delete
[1024] Fix | Delete
#ifdef __USE_XOPEN2K
[1025] Fix | Delete
/* Get the clock selected for the condition variable attribute ATTR. */
[1026] Fix | Delete
extern int pthread_condattr_getclock (const pthread_condattr_t *
[1027] Fix | Delete
__restrict __attr,
[1028] Fix | Delete
__clockid_t *__restrict __clock_id)
[1029] Fix | Delete
__THROW __nonnull ((1, 2));
[1030] Fix | Delete
[1031] Fix | Delete
/* Set the clock selected for the condition variable attribute ATTR. */
[1032] Fix | Delete
extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
[1033] Fix | Delete
__clockid_t __clock_id)
[1034] Fix | Delete
__THROW __nonnull ((1));
[1035] Fix | Delete
#endif
[1036] Fix | Delete
[1037] Fix | Delete
[1038] Fix | Delete
#ifdef __USE_XOPEN2K
[1039] Fix | Delete
/* Functions to handle spinlocks. */
[1040] Fix | Delete
[1041] Fix | Delete
/* Initialize the spinlock LOCK. If PSHARED is nonzero the spinlock can
[1042] Fix | Delete
be shared between different processes. */
[1043] Fix | Delete
extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
[1044] Fix | Delete
__THROW __nonnull ((1));
[1045] Fix | Delete
[1046] Fix | Delete
/* Destroy the spinlock LOCK. */
[1047] Fix | Delete
extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
[1048] Fix | Delete
__THROW __nonnull ((1));
[1049] Fix | Delete
[1050] Fix | Delete
/* Wait until spinlock LOCK is retrieved. */
[1051] Fix | Delete
extern int pthread_spin_lock (pthread_spinlock_t *__lock)
[1052] Fix | Delete
__THROWNL __nonnull ((1));
[1053] Fix | Delete
[1054] Fix | Delete
/* Try to lock spinlock LOCK. */
[1055] Fix | Delete
extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
[1056] Fix | Delete
__THROWNL __nonnull ((1));
[1057] Fix | Delete
[1058] Fix | Delete
/* Release spinlock LOCK. */
[1059] Fix | Delete
extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
[1060] Fix | Delete
__THROWNL __nonnull ((1));
[1061] Fix | Delete
[1062] Fix | Delete
[1063] Fix | Delete
/* Functions to handle barriers. */
[1064] Fix | Delete
[1065] Fix | Delete
/* Initialize BARRIER with the attributes in ATTR. The barrier is
[1066] Fix | Delete
opened when COUNT waiters arrived. */
[1067] Fix | Delete
extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
[1068] Fix | Delete
const pthread_barrierattr_t *__restrict
[1069] Fix | Delete
__attr, unsigned int __count)
[1070] Fix | Delete
__THROW __nonnull ((1));
[1071] Fix | Delete
[1072] Fix | Delete
/* Destroy a previously dynamically initialized barrier BARRIER. */
[1073] Fix | Delete
extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
[1074] Fix | Delete
__THROW __nonnull ((1));
[1075] Fix | Delete
[1076] Fix | Delete
/* Wait on barrier BARRIER. */
[1077] Fix | Delete
extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
[1078] Fix | Delete
__THROWNL __nonnull ((1));
[1079] Fix | Delete
[1080] Fix | Delete
[1081] Fix | Delete
/* Initialize barrier attribute ATTR. */
[1082] Fix | Delete
extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
[1083] Fix | Delete
__THROW __nonnull ((1));
[1084] Fix | Delete
[1085] Fix | Delete
/* Destroy previously dynamically initialized barrier attribute ATTR. */
[1086] Fix | Delete
extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
[1087] Fix | Delete
__THROW __nonnull ((1));
[1088] Fix | Delete
[1089] Fix | Delete
/* Get the process-shared flag of the barrier attribute ATTR. */
[1090] Fix | Delete
extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t *
[1091] Fix | Delete
__restrict __attr,
[1092] Fix | Delete
int *__restrict __pshared)
[1093] Fix | Delete
__THROW __nonnull ((1, 2));
[1094] Fix | Delete
[1095] Fix | Delete
/* Set the process-shared flag of the barrier attribute ATTR. */
[1096] Fix | Delete
extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
[1097] Fix | Delete
int __pshared)
[1098] Fix | Delete
__THROW __nonnull ((1));
[1099] Fix | Delete
#endif
[1100] Fix | Delete
[1101] Fix | Delete
[1102] Fix | Delete
/* Functions for handling thread-specific data. */
[1103] Fix | Delete
[1104] Fix | Delete
/* Create a key value identifying a location in the thread-specific
[1105] Fix | Delete
data area. Each thread maintains a distinct thread-specific data
[1106] Fix | Delete
area. DESTR_FUNCTION, if non-NULL, is called with the value
[1107] Fix | Delete
associated to that key when the key is destroyed.
[1108] Fix | Delete
DESTR_FUNCTION is not called if the value associated is NULL when
[1109] Fix | Delete
the key is destroyed. */
[1110] Fix | Delete
extern int pthread_key_create (pthread_key_t *__key,
[1111] Fix | Delete
void (*__destr_function) (void *))
[1112] Fix | Delete
__THROW __nonnull ((1));
[1113] Fix | Delete
[1114] Fix | Delete
/* Destroy KEY. */
[1115] Fix | Delete
extern int pthread_key_delete (pthread_key_t __key) __THROW;
[1116] Fix | Delete
[1117] Fix | Delete
/* Return current value of the thread-specific data slot identified by KEY. */
[1118] Fix | Delete
extern void *pthread_getspecific (pthread_key_t __key) __THROW;
[1119] Fix | Delete
[1120] Fix | Delete
/* Store POINTER in the thread-specific data slot identified by KEY. */
[1121] Fix | Delete
extern int pthread_setspecific (pthread_key_t __key,
[1122] Fix | Delete
const void *__pointer) __THROW ;
[1123] Fix | Delete
[1124] Fix | Delete
[1125] Fix | Delete
#ifdef __USE_XOPEN2K
[1126] Fix | Delete
/* Get ID of CPU-time clock for thread THREAD_ID. */
[1127] Fix | Delete
extern int pthread_getcpuclockid (pthread_t __thread_id,
[1128] Fix | Delete
__clockid_t *__clock_id)
[1129] Fix | Delete
__THROW __nonnull ((2));
[1130] Fix | Delete
#endif
[1131] Fix | Delete
[1132] Fix | Delete
[1133] Fix | Delete
/* Install handlers to be called when a new process is created with FORK.
[1134] Fix | Delete
The PREPARE handler is called in the parent process just before performing
[1135] Fix | Delete
FORK. The PARENT handler is called in the parent process just after FORK.
[1136] Fix | Delete
The CHILD handler is called in the child process. Each of the three
[1137] Fix | Delete
handlers can be NULL, meaning that no handler needs to be called at that
[1138] Fix | Delete
point.
[1139] Fix | Delete
PTHREAD_ATFORK can be called several times, in which case the PREPARE
[1140] Fix | Delete
handlers are called in LIFO order (last added with PTHREAD_ATFORK,
[1141] Fix | Delete
first called before FORK), and the PARENT and CHILD handlers are called
[1142] Fix | Delete
in FIFO (first added, first called). */
[1143] Fix | Delete
[1144] Fix | Delete
extern int pthread_atfork (void (*__prepare) (void),
[1145] Fix | Delete
void (*__parent) (void),
[1146] Fix | Delete
void (*__child) (void)) __THROW;
[1147] Fix | Delete
[1148] Fix | Delete
[1149] Fix | Delete
#ifdef __USE_EXTERN_INLINES
[1150] Fix | Delete
/* Optimizations. */
[1151] Fix | Delete
__extern_inline int
[1152] Fix | Delete
__NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
[1153] Fix | Delete
{
[1154] Fix | Delete
return __thread1 == __thread2;
[1155] Fix | Delete
}
[1156] Fix | Delete
#endif
[1157] Fix | Delete
[1158] Fix | Delete
__END_DECLS
[1159] Fix | Delete
[1160] Fix | Delete
#endif /* pthread.h */
[1161] Fix | Delete
[1162] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function