Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ overflow-checks = false

[package]
name = "hwlocality"
version = "1.0.0-alpha.2"
version = "1.0.0-alpha.3"
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub type ThreadId = hwloc_thread_t;

/// Get the current thread's identifier through the libc or windows API
#[cfg(not(target_os = "windows"))]
#[cfg_attr(docsrs, doc(cfg()))]
#[cfg_attr(docsrs, doc(cfg(all())))]
pub fn current_thread_id() -> ThreadId {
// SAFETY: Should be always safe to call
let id = unsafe { libc::pthread_self() };
Expand All @@ -279,7 +279,7 @@ pub fn current_thread_id() -> ThreadId {
//
/// Get the current thread's identifier through the libc or windows API
#[cfg(target_os = "windows")]
#[cfg_attr(docsrs, doc(cfg()))]
#[cfg_attr(docsrs, doc(cfg(all())))]
pub fn current_thread_id() -> ThreadId {
// SAFETY: Should be always safe to call on Windows
unsafe { windows_sys::Win32::System::Threading::GetCurrentThread() }
Expand Down