247 Commits

Author SHA1 Message Date
90a543cd75 add luajit::Lambda 2023-08-06 09:27:35 +09:00
1bcbd786f5 add nf7::Value::operator== 2023-08-06 07:38:10 +09:00
ca16c6948a fix an issue that ConsumeTasks() ends before all tasks consumed 2023-08-05 23:23:47 +09:00
1319a81ce2 add luajit::TaskContext::Push(const nf7::Value&) 2023-08-05 23:22:38 +09:00
cf3898d7bf add nf7:assert to luajit std table 2023-08-05 22:07:16 +09:00
ed73ab63fe implement Push for nf7::Value 2023-08-05 22:06:36 +09:00
528d181cbf set immutable environment for lua threads 2023-08-05 21:44:20 +09:00
8ebb5871e6 add luajit::Context to Env in ContextFixture 2023-08-05 20:46:09 +09:00
9402501708 separate kFinished state of Thread into kExited and kAborted 2023-08-05 20:42:09 +09:00
4fd6b17936 enhance Exception to print exception stack on stream 2023-08-05 20:41:04 +09:00
73cb7e7412 fix an issue that ConsumeTasks() may end before end of the last task execution 2023-08-05 11:25:36 +09:00
ca2ad884e9 improve luajit::test::ContextFixture to consume async tasks on worker thread instead of main 2023-08-05 11:18:05 +09:00
2aef087d02 add SimpleTaskQueue::WaitForEmpty() 2023-08-05 11:17:25 +09:00
cc51952268 add luajit::Thread 2023-08-05 10:22:12 +09:00
6f6aa557fd add luajit::TaskContext::Push() methods 2023-08-05 10:17:54 +09:00
6d39015047 improve luajit::TaskContext::Query 2023-08-05 10:15:13 +09:00
69a0ca1fd0 Merge pull request 'feat/122-lambda-base' (#123) from feat/122-lambda-base into main
Reviewed-on: #123
2023-08-01 12:19:48 +00:00
7beef09f2b fix file order in cmake script 2023-08-01 21:19:49 +09:00
fdb3e28eec add unittests for LambdaBase 2023-08-01 21:15:55 +09:00
ac9e2af70e add LambdaBase 2023-08-01 21:15:55 +09:00
3089bccf55 add copy-constructor version of Observer::Target::Notify 2023-08-01 21:15:55 +09:00
eafa05fbf5 remove fields from DealerMeta
they are unnecessary because lambda no longer has multiple takers/makers
2023-08-01 21:15:55 +09:00
03981f2cd9 add noexcept specifier to Observer::Notify() methods 2023-08-01 20:49:16 +09:00
7663ed9dea remove Taker::onTake() 2023-08-01 20:48:19 +09:00
261c2716fe Merge pull request 'simplify Lambda I/O interface' (#121) from feature/113-dealer into main
Reviewed-on: #121
2023-07-30 13:01:48 +00:00
e81aa74c81 simplify Lambda I/O interface 2023-07-30 20:50:35 +09:00
2f2a50715b Merge pull request 'replace MakeValue functions to Value::Make methods' (#120) from feature/118-value-factory into main
Reviewed-on: #120
2023-07-30 11:48:12 +00:00
988c77654f replace MakeValue functions to Value::Make methods 2023-07-30 20:48:29 +09:00
5f3de03a3f Merge pull request 'enable ctest feature' (#117) from feature/116-ctest into main
Reviewed-on: #117
2023-07-29 23:45:25 +00:00
1986a8e854 enable ctest feature 2023-07-30 08:43:53 +09:00
4649bc3c52 Merge pull request 'feature/107-luajit-ctx' (#115) from feature/107-luajit-ctx into main
Reviewed-on: #115
2023-07-29 15:08:53 +00:00
9aafa6e0a8 add luajit::Context 2023-07-30 00:07:35 +09:00
3caa4f5ab7 expose Task::shared_from_this() to child classes 2023-07-30 00:07:35 +09:00
c3a47522f2 simplify complex typenames by using keyword 2023-07-30 00:07:35 +09:00
2aeea43d79 fix LuaJIT build error 2023-07-30 00:07:17 +09:00
63cd3f106f specify default name of Concurrency & Parallelism interfaces 2023-07-29 22:03:40 +09:00
7bae09b269 update WrappedTaskQueue to keep internal as shared_ptr instead of unique_ptr 2023-07-29 22:02:44 +09:00
5a507c2685 Merge pull request 'move task context definitions to new file under iface/common' (#112) from feature/110-tidy-subsys-nspace into main
Reviewed-on: #112
2023-07-29 01:30:48 +00:00
6125f12384 move task context definitions to new file under iface/common 2023-07-29 10:25:18 +09:00
5c6d72c649 Merge pull request 'simplify code of Task by downgrading parameter feature' (#111) from feature/109-task-1param into main
Reviewed-on: #111
2023-07-29 01:10:15 +00:00
c58d2bb1e5 simplify code of Task by downgrading parameter feature 2023-07-29 10:07:07 +09:00
74a52f0781 Merge pull request 'replace static_assert bad complex idiom with simpler one' (#102) from feature/101-static-assert into main
Reviewed-on: #102
2023-07-24 12:40:32 +00:00
a5c040684a replace static_assert bad complex idiom with simpler one 2023-07-24 21:39:55 +09:00
f4e56dd83a Merge pull request 'fix integer overflow while a unittest, SimpleTaskQueue.PushAndDrive' (#100) from fix/97-integer-overflow into main
Reviewed-on: #100
2023-07-23 21:43:12 +00:00
0b35857456 fix integer overflow while a unittest, SimpleTaskQueue.PushAndDrive 2023-07-24 05:47:55 +09:00
76c64c4054 Merge pull request 'Revert "remove WrappedTaskQueue"' (#96) from feature/95-wrapped-task-queue into main
Reviewed-on: #96
2023-07-23 20:37:17 +00:00
e444b4f417 Revert "remove WrappedTaskQueue"
This reverts commit b998b0cf453be6da966d67ff6b9015d5b2fb3efd.
2023-07-24 05:28:54 +09:00
e52df1e3eb Merge pull request '80 setup LuaJIT build environment' (#94) from feature/80-lua into main
Reviewed-on: #94
2023-07-23 12:54:56 +00:00
f259738602 add gcc-13 as dependency in dev environment and add aliases 2023-07-23 21:24:08 +09:00
0a97f0e3ae fix compile errors 2023-07-23 21:23:47 +09:00