We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f93260 commit 4c0a534Copy full SHA for 4c0a534
1 file changed
include/libremidi/backends/jack/helpers.hpp
@@ -8,6 +8,7 @@
8
#include <cstdint>
9
#include <cstring>
10
#include <memory>
11
+#include <thread>
12
13
NAMESPACE_LIBREMIDI
14
{
@@ -279,7 +280,7 @@ struct jack_queue
279
280
return std::errc::no_buffer_space;
281
282
while (jack_ringbuffer_write_space(ringbuffer) < sz + size_sz)
- sched_yield();
283
+ std::this_thread::yield();
284
285
jack_ringbuffer_write(ringbuffer, reinterpret_cast<char*>(&sz), size_sz);
286
jack_ringbuffer_write(ringbuffer, reinterpret_cast<const char*>(data), sz);
0 commit comments