diff options
| author | bors <bors@rust-lang.org> | 2013-11-10 21:56:08 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-10 21:56:08 -0800 |
| commit | 46100c06223f737a7604b46667800ed42cf20d3b (patch) | |
| tree | 03a4791a263cabaa75471632553f1adc3aa9ab30 /src/libstd/rt/thread.rs | |
| parent | 63cfc9989d62e0047c2f9597d2b2283717397dea (diff) | |
| parent | 7407bcc1a2aa46949d3dadd1d9b79c76ad18d4cf (diff) | |
| download | rust-46100c06223f737a7604b46667800ed42cf20d3b.tar.gz rust-46100c06223f737a7604b46667800ed42cf20d3b.zip | |
auto merge of #10408 : alexcrichton/rust/snapshots, r=huonw
Mostly just using the `system` abi where possible.
Diffstat (limited to 'src/libstd/rt/thread.rs')
| -rw-r--r-- | src/libstd/rt/thread.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index 9838a191197..b21a8f5981d 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -118,16 +118,8 @@ impl Drop for Thread { } } -#[cfg(windows, target_arch = "x86")] -extern "stdcall" { - fn CreateThread(lpThreadAttributes: LPSECURITY_ATTRIBUTES, dwStackSize: SIZE_T, - lpStartAddress: extern "C" fn(*libc::c_void) -> rust_thread_return, - lpParameter: LPVOID, dwCreationFlags: DWORD, lpThreadId: LPDWORD) -> HANDLE; - fn WaitForSingleObject(hHandle: HANDLE, dwMilliseconds: DWORD) -> DWORD; -} - -#[cfg(windows, target_arch = "x86_64")] -extern { +#[cfg(windows)] +extern "system" { fn CreateThread(lpThreadAttributes: LPSECURITY_ATTRIBUTES, dwStackSize: SIZE_T, lpStartAddress: extern "C" fn(*libc::c_void) -> rust_thread_return, lpParameter: LPVOID, dwCreationFlags: DWORD, lpThreadId: LPDWORD) -> HANDLE; |
