mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
- Fix cross compatibility issues by exchanging pthread_yield with my_sleep(0)
This commit is contained in:
parent
f5ecb35e6c
commit
a8b9bd9f67
1 changed files with 1 additions and 1 deletions
|
@ -1084,7 +1084,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
|
|||
spin_count++;
|
||||
if (spin_count%5)
|
||||
new_time= my_clock();
|
||||
pthread_yield();
|
||||
my_sleep(0);
|
||||
}
|
||||
|
||||
if (lock_status != 0)
|
||||
|
|
Loading…
Reference in a new issue