mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Ensure that writer buffers are flushed before synchronizing parity writes
This commit is contained in:
parent
5fd41d215b
commit
30474cfb80
7 changed files with 130 additions and 35 deletions
|
|
@ -1741,5 +1741,12 @@ void thread_join(thread_id_t thread, void** retval)
|
|||
}
|
||||
}
|
||||
|
||||
void thread_yield(void)
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
Sleep(0);
|
||||
#else
|
||||
sched_yield();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue