summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2007-09-03 13:42:32 +0200
committerunknown <thek@adventure.(none)>2007-09-03 13:42:32 +0200
commitd2a0a4d53a217c906d7c7c5bf867477fc4f5936e (patch)
treee3f8e1349c149945831e3d7d274bada511bb8119 /sql/sql_cache.cc
parent733bd4fe81dc36cc1dc7be4b9562fd3b5727614c (diff)
downloadmariadb-git-d2a0a4d53a217c906d7c7c5bf867477fc4f5936e.tar.gz
- Fix cross compatibility issues by exchanging pthread_yield with my_sleep(0)
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index cb00b98ccf8..97e37c870e2 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -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)