Skip to content

Commit

Permalink
std::threads: fix thread spawn implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 30, 2024
1 parent 7af2c82 commit 5833143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/thread/thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ struct __jule_thread_handle {
}
};

__jule_thread_handle __jule_spawn_thread(const jule::Fn<void(void)> &routine) {
__jule_thread_handle __jule_spawn_thread(const jule::Fn<void> &routine) {
__jule_thread_handle jth;
jth._thread = jule::Ptr<std::thread>::make(new std::thread(routine.buffer));
jth._thread = jule::Ptr<std::thread>::make(new std::thread(routine));
return jth;
}

Expand Down

0 comments on commit 5833143

Please sign in to comment.