From 34a747c806c5f2994ef7a9ffe8d4844ec2374790 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:01:23 +0500 Subject: [PATCH] #650: Relax the race for the clipboard --- src/netxs/desktopio/system.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netxs/desktopio/system.hpp b/src/netxs/desktopio/system.hpp index 6be78ff98e..e0c0c3a9f0 100644 --- a/src/netxs/desktopio/system.hpp +++ b/src/netxs/desktopio/system.hpp @@ -2092,7 +2092,7 @@ namespace netxs::os sync(error, mime::textonly); return; } - std::this_thread::yield(); + os::sleep(15ms); } if (auto seqno = ::GetClipboardSequenceNumber(); seqno != os::clipboard::sequence) {