23 Commits

Author SHA1 Message Date
db0917c5ac add ctx:sleep() 2023-08-06 17:05:32 +09:00
a9795d79dd install Clock to env in ContextFixture 2023-08-06 17:04:54 +09:00
6fcd57ba9b improve ContextFixture to wait for a task queue to be empty 2023-08-06 17:04:28 +09:00
3a3adbcde6 fix an issue that delay is not applied to tasks pushed to luajit context 2023-08-06 17:02:08 +09:00
7a2774b09d add LeakDetector feature to luajit::Context, luajit::Thread, and nf7::Lambda 2023-08-06 10:43:50 +09:00
2c671d65c4 wrap class defs in cc files with anonymous namespace 2023-08-06 10:28:29 +09:00
585f0daecd add unittests for nf7:value 2023-08-06 09:36:41 +09:00
9ac5907687 improve error message of nf7:value() function 2023-08-06 09:28:31 +09:00
90a543cd75 add luajit::Lambda 2023-08-06 09:27:35 +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
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
9aafa6e0a8 add luajit::Context 2023-07-30 00:07:35 +09:00