#include <my_xp_thread.h>
◆ attr_destroy()
Destroy thread attributes object.
- Parameters
-
- Returns
- success status
◆ attr_getstacksize()
Returns the stack size attribute of the thread attributes object referred to by attr in the buffer pointed to by stacksize.
- Parameters
-
attr | thread attributes |
stacksize | pointer to attribute stack size returning placeholder |
- Return values
-
0 | on success |
nonzero | error number, on error |
◆ attr_init()
Initialize thread attributes object.
- Parameters
-
- Returns
- success status
◆ attr_setdetachstate()
Sets the detach state attribute of the thread attributes object referred to by attr to the value specified in detachstate.
- Parameters
-
attr | thread attributes |
detachstate | determines if the thread is to be created in a joinable (MY_THREAD_CREATE_JOINABLE) or a detached state (MY_THREAD_CREATE_DETACHED) |
- Return values
-
0 | on success |
nonzero | error number, on error |
◆ attr_setstacksize()
Sets the stack size attribute of the thread attributes object referred to by attr to the value specified in stacksize.
- Parameters
-
attr | thread attributes |
stacksize | new attribute stack size |
- Return values
-
0 | on success |
nonzero | error number, on error |
◆ equal()
Compares two thread identifiers.
- Parameters
-
t1 | identifier of one thread |
t2 | identifier of another thread |
- Return values
-
0 | if ids are different |
some | other value if ids are equal |
◆ exit()
void My_xp_thread_util::exit |
( |
void * |
value_ptr | ) |
|
|
static |
Terminate invoking thread.
- Parameters
-
value_ptr | thread exit value pointer |
◆ self()
Retrieve current thread id.
- Returns
- current thread id
◆ yield()
void My_xp_thread_util::yield |
( |
| ) |
|
|
static |
Causes the calling thread to relinquish the CPU, and to be moved to the end of the queue and another thread gets to run.
The documentation for this class was generated from the following files:
- plugin/group_replication/libmysqlgcs/include/mysql/gcs/xplatform/my_xp_thread.h
- plugin/group_replication/libmysqlgcs/src/interface/xplatform/my_xp_thread.cc