Skip to content

Commit

Permalink
Ensures that an executor thread can not be created twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Dec 29, 2023
1 parent 2a1f4b3 commit 47cb981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/os/OS.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public:
*/
void start(const char *name, int priority, size_t stack_size)
{
HASSERT(!is_created());
os_thread_create(&handle, name, priority, stack_size, start, this);
}

Expand Down

0 comments on commit 47cb981

Please sign in to comment.