Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions include/proxy-wasm/exports.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ void wasi_unstable_proc_exit(Word);
Word wasi_unstable_clock_time_get(Word, uint64_t, Word);
Word wasi_unstable_random_get(Word, Word);
Word pthread_equal(Word left, Word right);
void emscripten_notify_memory_growth(Word);

// Support for embedders, not exported to Wasm.

Expand Down
2 changes: 2 additions & 0 deletions src/exports.cc
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,8 @@ void wasi_unstable_proc_exit(Word /*exit_code*/) {

Word pthread_equal(Word left, Word right) { return static_cast<uint64_t>(left == right); }

void emscripten_notify_memory_growth(Word /*memory_index*/) {}

Word set_tick_period_milliseconds(Word period_milliseconds) {
TimerToken token = 0;
return contextOrEffectiveContext()->setTimerPeriod(std::chrono::milliseconds(period_milliseconds),
Expand Down
1 change: 1 addition & 0 deletions src/wasm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ void WasmBase::registerCallbacks() {
&ConvertFunctionWordToUint32<decltype(exports::_fn), \
exports::_fn>::convertFunctionWordToUint32)
_REGISTER(pthread_equal);
_REGISTER(emscripten_notify_memory_growth);
#undef _REGISTER

// Register the capability with the VM if it has been allowed, otherwise register a stub.
Expand Down