]> git.proxmox.com Git - rustc.git/blame - src/vendor/winapi/src/um/fibersapi.rs
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / vendor / winapi / src / um / fibersapi.rs
CommitLineData
ff7c6d11
XL
1// Copyright © 2017 winapi-rs developers
2// Licensed under the Apache License, Version 2.0
3// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
4// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
5// All files in the project carrying such notice may not be copied, modified, or distributed
6// except according to those terms.
7use shared::minwindef::{BOOL, DWORD};
8use um::winnt::{PFLS_CALLBACK_FUNCTION, PVOID};
9extern "system" {
10 pub fn FlsAlloc(
11 lpCallback: PFLS_CALLBACK_FUNCTION,
12 ) -> DWORD;
13 pub fn FlsGetValue(
14 dwFlsIndex: DWORD,
15 ) -> PVOID;
16 pub fn FlsSetValue(
17 dwFlsIndex: DWORD,
18 lpFlsData: PVOID,
19 ) -> BOOL;
20 pub fn FlsFree(
21 dwFlsIndex: DWORD,
22 ) -> BOOL;
23 pub fn IsThreadAFiber() -> BOOL;
24}