UNPKG

nstdlib-nightly

Version:

Node.js standard library converted to runtime-agnostic ES modules.

25 lines (18 loc) 895 B
// Source: https://github.com/nodejs/node/blob/65eff1eb/lib/internal/modules/esm/shared_constants.js // This file contains the definition for the constant values that must be // available to both the main thread and the loader thread. /* The shared memory area is divided in 1 32-bit long section. It has to be 32-bit long as `Atomics.notify` only works with `Int32Array` objects. --32-bits-- ^ | | WORKER_TO_MAIN_THREAD_NOTIFICATION WORKER_TO_MAIN_THREAD_NOTIFICATION is only used to send notifications, its value is going to increase every time the worker sends a notification to the main thread. */ const _export_WORKER_TO_MAIN_THREAD_NOTIFICATION_ = 0; export { _export_WORKER_TO_MAIN_THREAD_NOTIFICATION_ as WORKER_TO_MAIN_THREAD_NOTIFICATION }; const _export_SHARED_MEMORY_BYTE_LENGTH_ = 1 * 4; export { _export_SHARED_MEMORY_BYTE_LENGTH_ as SHARED_MEMORY_BYTE_LENGTH };