Commit Graph

20 Commits

Author SHA1 Message Date
xdmal dc83af0525 format repair
For internal issues raised by Huawei, modify README files, related copyright information, etc.

Related issue: https://gitee.com/openharmony/js_worker_module/issues/I4XAYE

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-03-14 12:00:11 +08:00
y00576111 27f6d0de57 Delete module type judgment
Delete the module type judgment and add it when it is supported

issue: https://gitee.com/openharmony/js_worker_module/issues/I4W7QC

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I38826d403ac7498416a4774449216a426127870a
2022-03-12 11:04:59 +08:00
y00576111 015a1ed70c remove unnecessary code
issue:https://gitee.com/openharmony/js_worker_module/issues/I4W7OV

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I65ee085b2744766535bce9295f52fda34b01318d
2022-03-08 19:17:55 +08:00
openharmony_ci cdc4368beb !26 actor code
Merge pull request !26 from yaojian16/actor
2022-03-02 12:20:56 +00:00
y00576111 7f7abc0b8d Support actor function
When the worker thread is started
the part shared by the virtual machine is not recreated
only the part that cannot be shared is created

issue:https://gitee.com/openharmony/js_worker_module/issues/I4SMW8

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I9bf9ba9a5f1b6b2a1df6ebb2827c68bdf95d94f9
2022-02-21 22:17:07 +08:00
duwenbo 803cba8e35 Resolve the memory leak of StartExecuteInThread!
When loop is determined to be null, the script pointer
variable needs to be released.

Signed-off-by: duwenbo <duwenbo7@huawei.com>
2022-02-21 18:32:08 +08:00
y00576111 da6cfdd644 codex fix
Why
The data types of the variables do not match

Description
Change the input parameter type of CallWorkerFunction and CallHostFunction functions from int to size_t

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I203029a7f55d139be09fe4bc9aa5c9653f1f8165
2022-02-16 19:58:47 +08:00
shikai-123 4065dd2ca0 Signed-off-by: shikai-123 <lifansheng1@huawei.com>
Replace compileruntime with utils
2022-02-15 16:04:35 +08:00
xliu 36e161c4e1 Replace ohos.build with bundle.json
Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: If84453454f00d433805a9eca9fd0d7d2a4da1b95
2022-01-24 22:51:52 +08:00
zhanghaibo 055c92051d change header file of napi
Signed-off-by: zhanghaibo <zhanghaibo0@huawei.com>
Change-Id: I6a7f6778e3787c8688cdf9f562d41f75276135dd
2022-01-17 20:52:17 +08:00
y00576111 dae1ea6bb4 second level worker
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I169dbe100e7bddcadaef47763566d256c03b9ec6
2022-01-04 11:23:58 +08:00
y00576111 9a238cf635 sync to ohos-master
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I9f3c1b8a34ab5b77f8fa9e62e96c74cc5e960876
2021-12-25 09:12:39 +08:00
y00576111 23ae6badee thread synchronization problem
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I7e6ca513c48fc25fb1a69391a472224b2e0d400e
2021-10-07 21:42:42 +08:00
y00576111 1407e583c9 fix community code alarms
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Icf956b44239c7cef5d5ce085c53b138886466c76
2021-09-24 10:44:19 +08:00
y00576111 3c4468cf9a fix codex
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I7a13f8182bcd6754b4ba79e4bb4132647e90f643
2021-09-22 16:36:50 +08:00
y00576111 b70a2fc648 fix for ark
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: If3cf10a366b45e714b61ef5e582c66fe06ccda3e
2021-09-18 18:49:10 +08:00
y00576111 a2384523a1 modify run_buffer_script to support ark
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Iaa4584cda429467bb2ac5b54844301e987c6e0c4
2021-09-14 14:48:22 +08:00
y00576111 b524abebae Rectification worker code
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Ifa0352cf550d2d745e6b1d70bd443c35309a2506
2021-08-28 09:09:01 +08:00
y00576111 ee5ab00fcd add worker readme
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I9ce0caaabe79e404c382c838352aa6ba17542f30
2021-08-25 18:40:30 +08:00
wupengyong 9dfe2c186f add worker core
Signed-off-by: wupengyong <wupengyong@huawei.com>
2021-08-22 09:48:16 +08:00