Skip to content

Commit

Permalink
Yield execution inbetween attempts to open
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Sep 5, 2020
1 parent 9019869 commit 2e80637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -41,4 +41,5 @@ features = [
"winerror",
"stringapiset",
"errhandlingapi",
"processthreadsapi"
]
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -140,6 +140,7 @@ impl Clipboard {
_ => num -= 1,
}
}
unsafe { winapi::um::processthreadsapi::SwitchToThread(); }
}
}
}
Expand Down

0 comments on commit 2e80637

Please sign in to comment.