Skip to content

Commit

Permalink
No gc blocking in jsprime
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Oct 30, 2023
1 parent ad245e9 commit ef424fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project/src/common/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4149,7 +4149,9 @@ struct ValueAppDataCallback : public IAppDataCallback

void beginCallbacks()
{
#ifndef HXCPP_JS_PRIME
unblocked = gc_try_unblocking();
#endif
}

void onAppData(int marker, const uint8 *inBytes,int inLen )
Expand All @@ -4170,8 +4172,10 @@ struct ValueAppDataCallback : public IAppDataCallback

void endCallbacks()
{
#ifndef HXCPP_JS_PRIME
if (unblocked)
gc_enter_blocking();
#endif
}

};
Expand Down

0 comments on commit ef424fe

Please sign in to comment.