Skip to content

Commit

Permalink
Fix MAIN_THREAD handle in windows_join_main
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Dec 2, 2024
1 parent ab0e138 commit e19deaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fail-dep/concurrency/windows_join_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use windows_sys::Win32::System::Threading::{INFINITE, WaitForSingleObject};
// XXX HACK: This is how miri represents the handle for thread 0.
// This value can be "legitimately" obtained by using `GetCurrentThread` with `DuplicateHandle`
// but miri does not implement `DuplicateHandle` yet.
const MAIN_THREAD: HANDLE = (2i32 << 30) as HANDLE;
const MAIN_THREAD: HANDLE = (2i32 << 29) as HANDLE;

fn main() {
thread::spawn(|| {
Expand Down

0 comments on commit e19deaa

Please sign in to comment.