P99
Public Member Functions
thrd_t Struct Reference

complete object type that holds an identifier for a thread More...

#include <p99_threads.h>

Public Member Functions

int thrd_create (thrd_t *p00_thr, thrd_start_t p00_func, void *p00_arg)
thrd_t thrd_current (void)
int thrd_detach (thrd_t p00_thr)
int thrd_equal (thrd_t p00_thr0, thrd_t p00_thr1)
void thrd_exit (int p00_res)
int thrd_join (thrd_t p00_thr, int *p00_res)
int thrd_sleep (const struct timespec *p00_duration, struct timespec *p00_remaining)
void thrd_yield (void)

Detailed Description

complete object type that holds an identifier for a thread

Remarks:
Even thought this implementation of threads is based on POSIX, this thread id type is not compatible with POSIX' pthread_t.

As soon as you use this implementation here, all threads even if they are not created through thrd_create will have a distinct such thrd_t as their ID. This ID is accessible through thrd_current.

Remarks:
encapsulates an object of type struct p00_thrd*
See also:
P99_ENC for access through object
P99_ENCP for access through pointer

Definition at line 100 of file p99_threads.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines