11cb0ef41Sopenharmony_ci// This file contains the definition for the constant values that must be 21cb0ef41Sopenharmony_ci// available to both the main thread and the loader thread. 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ci'use strict'; 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci/* 71cb0ef41Sopenharmony_ciThe shared memory area is divided in 1 32-bit long section. It has to be 32-bit long as 81cb0ef41Sopenharmony_ci`Atomics.notify` only works with `Int32Array` objects. 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci--32-bits-- 111cb0ef41Sopenharmony_ci ^ 121cb0ef41Sopenharmony_ci | 131cb0ef41Sopenharmony_ci | 141cb0ef41Sopenharmony_ciWORKER_TO_MAIN_THREAD_NOTIFICATION 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_ciWORKER_TO_MAIN_THREAD_NOTIFICATION is only used to send notifications, its value is going to 171cb0ef41Sopenharmony_ciincrease every time the worker sends a notification to the main thread. 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci*/ 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_cimodule.exports = { 221cb0ef41Sopenharmony_ci WORKER_TO_MAIN_THREAD_NOTIFICATION: 0, 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_ci SHARED_MEMORY_BYTE_LENGTH: 1 * 4, 251cb0ef41Sopenharmony_ci}; 26