Merge pull request #105164 from stuartcarnie/apple_pthread

Apple: Add pthread implementation of `Thread` class
This commit is contained in:
Thaddeus Crews 2025-04-10 10:18:12 -05:00
commit fc1dbda769
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
12 changed files with 336 additions and 2 deletions

View file

@ -143,7 +143,7 @@ TEST_CASE("[RID_Owner] Thread safety") {
uint32_t target = (p_step / 2 + 1) * threads.size();
sync[buf_idx].fetch_add(1, std::memory_order_relaxed);
do {
std::this_thread::yield();
Thread::yield();
} while (sync[buf_idx].load(std::memory_order_relaxed) != target);
}