Debian Codegraph @

third_party/rust/winapi/src/um/fibersapi.rs

raw
1 // Licensed under the Apache License, Version 2.0
2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
4 // All files in the project carrying such notice may not be copied, modified, or distributed
5 // except according to those terms.
6 use shared::minwindef::{BOOL, DWORD};
7 use um::winnt::{PFLS_CALLBACK_FUNCTION, PVOID};
8 extern "system" {
9 pub fn FlsAlloc(
10 lpCallback: PFLS_CALLBACK_FUNCTION,
11 ) -> DWORD;
12 pub fn FlsGetValue(
13 dwFlsIndex: DWORD,
14 ) -> PVOID;
15 pub fn FlsSetValue(
16 dwFlsIndex: DWORD,
17 lpFlsData: PVOID,
18 ) -> BOOL;
19 pub fn FlsFree(
20 dwFlsIndex: DWORD,
21 ) -> BOOL;
22 pub fn IsThreadAFiber() -> BOOL;
23 }