mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
- Fix cross compatibility issues by exchanging pthread_yield with my_sleep(0)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user