2017-09-05 20:38:32 +00:00
|
|
|
'use strict';
|
|
|
|
|
2017-09-01 15:03:41 +00:00
|
|
|
const {
|
|
|
|
isMainThread,
|
2019-02-22 19:11:19 +00:00
|
|
|
SHARE_ENV,
|
2019-03-08 18:35:40 +00:00
|
|
|
resourceLimits,
|
2021-02-23 00:22:17 +00:00
|
|
|
setEnvironmentData,
|
|
|
|
getEnvironmentData,
|
2017-09-01 15:03:41 +00:00
|
|
|
threadId,
|
2023-02-12 18:26:21 +00:00
|
|
|
Worker,
|
2017-09-01 15:03:41 +00:00
|
|
|
} = require('internal/worker');
|
2017-09-05 20:38:32 +00:00
|
|
|
|
2018-12-23 03:53:05 +00:00
|
|
|
const {
|
|
|
|
MessagePort,
|
2017-09-09 23:43:55 +00:00
|
|
|
MessageChannel,
|
2024-10-04 07:09:37 +00:00
|
|
|
markAsUncloneable,
|
2017-09-09 23:43:55 +00:00
|
|
|
moveMessagePortToContext,
|
2020-06-19 18:39:23 +00:00
|
|
|
receiveMessageOnPort,
|
2020-11-26 21:54:23 +00:00
|
|
|
BroadcastChannel,
|
2018-12-23 03:53:05 +00:00
|
|
|
} = require('internal/worker/io');
|
|
|
|
|
2024-07-09 07:16:04 +00:00
|
|
|
const {
|
|
|
|
postMessageToThread,
|
|
|
|
} = require('internal/worker/messaging');
|
|
|
|
|
2020-06-19 18:39:23 +00:00
|
|
|
const {
|
|
|
|
markAsUntransferable,
|
2023-05-05 11:22:42 +00:00
|
|
|
isMarkedAsUntransferable,
|
2020-06-19 18:39:23 +00:00
|
|
|
} = require('internal/buffer');
|
|
|
|
|
2017-09-01 15:03:41 +00:00
|
|
|
module.exports = {
|
|
|
|
isMainThread,
|
|
|
|
MessagePort,
|
|
|
|
MessageChannel,
|
2024-10-04 07:09:37 +00:00
|
|
|
markAsUncloneable,
|
2020-06-19 18:39:23 +00:00
|
|
|
markAsUntransferable,
|
2023-05-05 11:22:42 +00:00
|
|
|
isMarkedAsUntransferable,
|
2017-09-09 23:43:55 +00:00
|
|
|
moveMessagePortToContext,
|
2019-04-17 22:56:57 +00:00
|
|
|
receiveMessageOnPort,
|
2019-03-08 18:35:40 +00:00
|
|
|
resourceLimits,
|
2024-07-09 07:16:04 +00:00
|
|
|
postMessageToThread,
|
2017-09-01 15:03:41 +00:00
|
|
|
threadId,
|
2019-02-22 19:11:19 +00:00
|
|
|
SHARE_ENV,
|
2017-09-01 15:03:41 +00:00
|
|
|
Worker,
|
2019-01-28 14:29:48 +00:00
|
|
|
parentPort: null,
|
|
|
|
workerData: null,
|
2020-11-26 21:54:23 +00:00
|
|
|
BroadcastChannel,
|
2021-02-23 00:22:17 +00:00
|
|
|
setEnvironmentData,
|
|
|
|
getEnvironmentData,
|
2017-09-01 15:03:41 +00:00
|
|
|
};
|