|
ObjFW
|
Go to the source code of this file.
Functions | |
| static OF_INLINE OFPlainThread | OFCurrentPlainThread (void) |
| Returns the current plain thread. | |
| static OF_INLINE bool | OFPlainThreadIsCurrent (OFPlainThread thread) |
| Returns whether the specified plain thread is the current thread. | |
| int | OFPlainThreadAttributesInit (OFPlainThreadAttributes *attr) |
| Initializes the specified thread attributes. | |
| int | OFPlainThreadNew (OFPlainThread *thread, const char *name, void(*function)(id), id object, const OFPlainThreadAttributes *attr) |
| Creates a new plain thread. | |
| void | OFSetThreadName (const char *name) |
| Sets the name of the current thread. | |
| int | OFPlainThreadJoin (OFPlainThread thread) |
| Joins the specified thread. | |
| int | OFPlainThreadDetach (OFPlainThread thread) |
| Detaches the specified thread. | |
|
static |
Returns the current plain thread.
|
extern |
Initializes the specified thread attributes.
| attr | A pointer to the thread attributes to initialize |
|
extern |
Detaches the specified thread.
| thread | The thread to detach |
|
static |
Returns whether the specified plain thread is the current thread.
| thread | The thread to check |
|
extern |
Joins the specified thread.
| thread | The thread to join |
|
extern |
Creates a new plain thread.
A plain thread is similar to OFThread, but does not use exceptions and is just a lightweight wrapper around the system's thread implementation.
| thread | A pointer to the thread to create |
| name | A name for the thread |
| function | The function the thread should execute |
| object | The object to pass to the thread as an argument |
| attr | Thread attributes |
|
extern |
Sets the name of the current thread.
| name | The name for the current thread |