mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
cleanup: os_thread_yield() -> std::this_thread::yield()
This commit is contained in:
parent
62e4aaa240
commit
da3428805e
10 changed files with 11 additions and 12 deletions
|
|
@ -60,7 +60,6 @@ extern "C" { typedef void* (*os_thread_func_t)(void*); }
|
|||
typedef void* (*os_posix_f_t) (void*);
|
||||
|
||||
#define os_thread_eq(a,b) IF_WIN(a == b, pthread_equal(a, b))
|
||||
#define os_thread_yield() IF_WIN(SwitchToThread(), sched_yield())
|
||||
#define os_thread_get_curr_id() IF_WIN(GetCurrentThreadId(), pthread_self())
|
||||
|
||||
/****************************************************************//**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue