Skip to content

Commit 451cd52

Browse files
author
pippocao
committed
1. Try to output dump when crash on Windows Github Actions
2. Add detach function to bq::thread. 3. Support thread object restart
1 parent 3a21586 commit 451cd52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bq_common/platform/thread/thread_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ namespace bq {
398398
if (detach_result != 0) {
399399
bq::util::log_device_console(log_level::error, "detach thread \"%s\" failed, thread_id:%" PRIu64 ", error code:%d", thread_name_.c_str(), static_cast<uint64_t>(thread_id_), detach_result);
400400
}
401-
status_.store(enum_thread_status::detached);
401+
status_.store_seq_cst(enum_thread_status::detached);
402402
}
403403

404404
void thread::yield()

0 commit comments

Comments
 (0)