52 Commits

Author SHA1 Message Date
7b1f7d0b88 add udata to context data in lua 2023-11-19 11:54:38 +09:00
b9c1dc095f add FixedContainer 2023-11-03 20:04:11 +09:00
0e1dc34937 rename SimpleEnv to LazyEnv 2023-11-03 19:03:36 +09:00
fb56d47260 improve a policy of exception handling 2023-10-28 11:03:57 +09:00
71c73f70f1 improve luajit context to do GC while idle 2023-10-17 12:55:48 +09:00
72cf28cd14 allow value instance in luajit to retrieve lua object from itself 2023-10-17 00:09:06 +09:00
c5d6dd996f allow luajit::Value to push itself directly by lua_State 2023-10-17 00:07:42 +09:00
668b88c6c3 install leak detector feature to luajit::Value 2023-10-08 23:20:55 +09:00
2108ca3210 add luajit::Value::MakeFunction 2023-10-05 14:11:24 +09:00
b47843e943 separate luajit::Value definition to new file 2023-10-02 23:02:47 +09:00
2cbb6c9d2b set a base of luajit::Value as nf7::Value::Data 2023-10-02 22:53:02 +09:00
7777394da1 allow nf7::Value to hold a custom data type 2023-10-02 22:53:02 +09:00
a7658a072e assume that life of all containers are managed by shared_ptr 2023-10-02 22:32:31 +09:00
a733f94dad improve an interface of EnvFixture 2023-09-30 14:29:43 +09:00
117b117dfa enhance factory method of luajit::Context 2023-09-24 16:38:26 +09:00
5750fff6a4 move test::EnvFixture to core library from iface 2023-09-18 10:31:47 +09:00
25a5b7d2b8 improve a declaration style of NullLogger singleton instance 2023-09-08 22:09:45 +09:00
23cf7c4e9b upgrade dealer interface as subsys interface 2023-09-08 22:05:41 +09:00
397984b3a7 simplify ContextFixture for luajit 2023-09-03 13:06:18 +09:00
98c03478ef remove unused methods from Task 2023-09-03 13:06:18 +09:00
1b73522d35 use MemoryException when memory allocation fails 2023-08-26 13:24:11 +09:00
76f536757f fix an issue that Value object is not destructed in luajit 2023-08-16 22:36:19 +09:00
6d39fa975d fix an issue that async context can cause condition race 2023-08-14 21:59:33 +09:00
8a783c87a4 add log output to tell error cause after abortion of luajit::Lambda 2023-08-13 13:02:51 +09:00
281f70adb4 add unittest for a case when ctx:sleep is called without clock 2023-08-13 13:00:55 +09:00
a3043963da add a test for logging from luajit::Lambda 2023-08-13 12:54:36 +09:00
aa73fb50a5 remove clock object from test environment for luajit::Context 2023-08-13 12:54:36 +09:00
782171268a fix an issue that luajit::Lambda doesn't work if clock is not installed 2023-08-13 12:54:36 +09:00
295bb7c5f0 add logging feature to luajit::Lambda 2023-08-13 12:54:36 +09:00
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