Commit Graph

64 Commits

Author SHA1 Message Date
openharmony_ci d1d00b39b5 !56 Modify structure member variable initialization operations
Merge pull request !56 from hyq5234/master
2022-04-28 11:49:20 +00:00
yqhan b90dd8b0d6 Modify structure member variable initialization operations
Describe:Add the initialization of timeReq_ to the constructor.

issue:https://gitee.com/openharmony/js_worker_module/issues/I556KJ?from=project-issue

Signed-off-by: yqhan <hanyuqing2@huawei.com>
2022-04-28 18:29:06 +08:00
mamingshuai e40e152f05 !55 ace_engine、napi 部件名仓名和目录名整改
Merge pull request !55 from 0420
2022-04-27 14:08:59 +00:00
zhangxiao72 ae5b17542e ace_engine、napi 部件名仓名和目录名整改
Change-Id: I1f7c3e7fc07326b6542e2a33c03eb5e22a5601b8
Signed-off-by: zhangxiao72 <zhangxiao72@huawei.com>
2022-04-25 15:02:58 +08:00
openharmony_ci d1a3325b99 !54 add Timer Interface for worker
Merge pull request !54 from wangzhaoyong/cherry-pick-1650010547
2022-04-16 06:43:07 +00:00
y00576111 1459ce5be1 fixed 7748571 from https://gitee.com/wang_zhaoyong/js_worker_module/pulls/52
add Timer Interface for worker

execute polling operation and delay operation in the worker Without
waking up the system,add timer related interfaces,
setTimeout, setinterval, cleartimeout, clearinterval in worker
initialize

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

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I7089854c7f557c3f1d9f906854a2dad682e68400
2022-04-15 08:15:51 +00:00
openharmony_ci 10422f5c3e !51 Fixed intrinsic issue
Merge pull request !51 from 小马奔腾/master
2022-03-28 02:11:55 +00:00
xdmal e9ede1f340 Modify the endogenous issue
Solve the corresponding issue according to the specification

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

Signed-off-by: xdmal <maxiaodong16@huawei.com>
2022-03-26 17:43:52 +08:00
openharmony_ci 9a301a8630 !50 修改不必要的worker依赖以及修改worker的上限值
Merge pull request !50 from 杜文博/master
2022-03-25 06:29:01 +00:00
wbdu 129de94906 Modify the value of worker's upper limit
Describe:Changed the worker's upper limit from 50 to 8.

Signed-off-by: wbdu <duwenbo7@huawei.com>
2022-03-24 19:54:18 +08:00
wbdu e3986e12c4 Modify the unnecessary dependencies of worker
Describe:Delete the "//foundation/ace/napi:ace_napi_quickjs" of deps.

Signed-off-by: wbdu <duwenbo7@huawei.com>
2022-03-24 18:01:24 +08:00
openharmony_ci db06e23c00 !49 Modify potential risks
Merge pull request !49 from yaojian16/code_20220321
2022-03-21 13:32:07 +00:00
y00576111 137617ca19 Modify potential risks
Call napi_wrap before opening the child thread

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

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: Ia2b8d9dff8579b47f29b6c5c31a2d19b4cc4f045
2022-03-21 19:26:41 +08:00
openharmony_ci 81704c046f !43 Modify potential risks
Merge pull request !43 from yaojian16/bugfix_20220307
2022-03-16 07:56:00 +00:00
y00576111 e64a8d7ae4 Modify potential risks
Update the status terminating before sending the message, and then wake up the worker thread

issud: https://gitee.com/openharmony/js_worker_module/issues/I4WJQD

Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I6a6648676146c9cbd112b066fd142714b73170bd
2022-03-15 20:14:07 +08:00
openharmony_ci 5cf43471c8 !47 修改内源issue问题
Merge pull request !47 from 小马奔腾/master
2022-03-14 10:45:54 +00:00
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
openharmony_ci e33b40ae02 !46 Delete module type judgment
Merge pull request !46 from yaojian16/code_20220312
2022-03-12 03:55:01 +00: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
openharmony_ci 94cdd65a81 !44 remove unnecessary code
Merge pull request !44 from yaojian16/code_20220308
2022-03-08 12:53:16 +00: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
openharmony_ci fed67bb4cc !38 为mozilla_docs.txt 增加标头
Merge pull request !38 from 杜文博/master
2022-03-01 01:43:01 +00:00
duwenbo 239af44001 For mozilla_docs.txt add header
Describe:mozilla_docs.txt missing header

Signed-off-by: duwenbo <duwenbo7@huawei.com>
2022-02-28 17:19:19 +08: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
openharmony_ci 76bc61251f !36 解决StartExecuteInThread中内存泄漏问题!
Merge pull request !36 from 杜文博/master
2022-02-21 12:58:36 +00: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
openharmony_ci e8284c73d6 !32 codex fix
Merge pull request !32 from yaojian16/codex_fix
2022-02-16 12:33:27 +00: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
openharmony_ci 90a20438f9 !29 修改build.gn的subsystem_name
Merge pull request !29 from 史凯/master
2022-02-16 03:41:14 +00:00
shikai-123 4065dd2ca0 Signed-off-by: shikai-123 <lifansheng1@huawei.com>
Replace compileruntime with utils
2022-02-15 16:04:35 +08:00
openharmony_ci 0d051dde6c !25 Replace ccruntime with compileruntime
Merge pull request !25 from xliu/bundle
2022-01-25 01:58:48 +00: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
openharmony_ci dde47ce2f9 !24 change header file of napi
Merge pull request !24 from zhanghaibo/ndk
2022-01-24 04:20:19 +00: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
openharmony_ci 0a943ddd1b !22 feat: add bundle.json
Merge pull request !22 from 33/master
2022-01-12 06:53:39 +00:00
33 8c6fbb9dd9 update bundle.json.
Signed-off-by: Sang_Sang33 <wangzhu15@huawei.com>
2022-01-12 06:04:47 +00:00
Sang_Sang33 40e97da099 fix: bundle.json文件完善subsystem、build字段
Signed-off-by: Sang_Sang33 <wangzhu15@huawei.com>
2022-01-10 15:16:05 +08:00
Sang_Sang33 53ca65928c feat: add bundle.json
Signed-off-by: Sang_Sang33 <wangzhu15@huawei.com>
2022-01-10 11:49:42 +08:00
openharmony_ci bdb02c15a5 !20 second level worker
Merge pull request !20 from yaojian16/master
2022-01-08 07:20:26 +00:00
y00576111 dae1ea6bb4 second level worker
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I169dbe100e7bddcadaef47763566d256c03b9ec6
2022-01-04 11:23:58 +08:00
openharmony_ci 03b2adc7ca !18 sync to ohos-master
Merge pull request !18 from yaojian16/master
2021-12-25 02:20:55 +00: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
openharmony_ci 377f2e61f1 !16 update readme, add license
Merge pull request !16 from yaojian16/master
2021-12-02 13:25:07 +00:00
y00576111 00bb0c7d3b update readme, add license
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I0fbd8e8917adcd4b32564337c0f3b326f5a3102b
2021-12-02 20:51:04 +08:00
openharmony_ci 1446d5c5ba !14 thread synchronization problem
Merge pull request !14 from yaojian16/master
2021-10-08 01:27:49 +00:00
y00576111 23ae6badee thread synchronization problem
Signed-off-by: y00576111 <yaojian16@huawei.com>
Change-Id: I7e6ca513c48fc25fb1a69391a472224b2e0d400e
2021-10-07 21:42:42 +08:00
openharmony_ci ba9482f32f !12 fix community code alarms
Merge pull request !12 from yaojian16/master
2021-09-24 09:33:48 +00: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
openharmony_ci 5b205e7f4f !10 fix codex
Merge pull request !10 from yaojian16/master
2021-09-23 07:29:30 +00:00