Skip to content

Commit

Permalink
Thread stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
terrarier2111 committed Jul 20, 2023
1 parent a821b47 commit 3463c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ cfg_if::cfg_if! {
/// Returns a thread ID for the current thread, allocating one if needed.
#[inline]
pub(crate) fn get() -> Thread {
let thread = *THREAD.get();
let thread = unsafe { *THREAD.get() };
if likely(thread.init) {
thread
} else {
Expand Down

0 comments on commit 3463c02

Please sign in to comment.