Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions system/include/emscripten/val.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class EMBIND_VISIBILITY_DEFAULT val {
}

EM_VAL as_handle() const {
#ifdef _REENTRANT
#ifdef __EMSCRIPTEN_PTHREADS__
assert(pthread_equal(thread, pthread_self()) && "val accessed from wrong thread");
#endif
return handle;
Expand Down Expand Up @@ -568,7 +568,7 @@ class EMBIND_VISIBILITY_DEFAULT val {
private:
// takes ownership, assumes handle already incref'd and lives on the same thread
explicit val(EM_VAL handle) :
#ifdef _REENTRANT
#ifdef __EMSCRIPTEN_PTHREADS__
thread(pthread_self()),
#endif
handle(handle) {}
Expand Down