Commit a8b9bd9f authored by thek@adventure.(none)'s avatar thek@adventure.(none)
Browse files

- Fix cross compatibility issues by exchanging pthread_yield with my_sleep(0)

parent f5ecb35e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)