Skip to content

Commit b7f9f3d

Browse files
committed
fixup! src: align worker and main thread code with embedder API
1 parent c386bd1 commit b7f9f3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/environment.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,9 @@ void AddLinkedBinding(Environment* env,
708708
static std::atomic<uint64_t> next_thread_id{0};
709709

710710
ThreadId AllocateEnvironmentThreadId() {
711-
return ThreadId { next_thread_id++ };
711+
ThreadId ret;
712+
ret.id = next_thread_id++;
713+
return ret;
712714
}
713715

714716
void DefaultProcessExitHandler(Environment* env, int exit_code) {

0 commit comments

Comments
 (0)