Skip to content

Commit

Permalink
Remove the thread initialization calls
Browse files Browse the repository at this point in the history
They are no longer necessary.
  • Loading branch information
nagisa committed Apr 26, 2022
1 parent 7024e77 commit 939bd04
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tracy-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ impl Span {
}
#[cfg(feature="enable")]
unsafe {
sys::___tracy_init_thread();
let loc = sys::___tracy_alloc_srcloc_name(
line,
file.as_ptr() as _,
Expand Down Expand Up @@ -366,7 +365,6 @@ impl Drop for Frame {
pub fn message(message: &str, callstack_depth: u16) {
#[cfg(feature="enable")]
unsafe {
sys::___tracy_init_thread();
sys::___tracy_emit_message(
message.as_ptr() as _,
message.len(),
Expand All @@ -384,7 +382,6 @@ pub fn message(message: &str, callstack_depth: u16) {
pub fn color_message(message: &str, rgba: u32, callstack_depth: u16) {
#[cfg(feature="enable")]
unsafe {
sys::___tracy_init_thread();
sys::___tracy_emit_messageC(
message.as_ptr() as _,
message.len(),
Expand Down

0 comments on commit 939bd04

Please sign in to comment.