Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | C++ migration: refactor AllocatorDefinition and ProtectedAllocator into classes | Benoit Germain | 2024-03-26 | 7 | -96/+132 |
| | |||||
* | C++ migration: Universe MUTEX_T replaced with std::mutex and std::atomic | Benoit Germain | 2024-03-25 | 8 | -141/+112 |
| | |||||
* | C++ migration: revamped stack checking macros | Benoit Germain | 2024-03-25 | 9 | -320/+359 |
| | |||||
* | C++ migration: STACK_GROW is no longer a macro, sanitized and fixed warnings ↵ | Benoit Germain | 2024-03-22 | 6 | -394/+419 |
| | | | | in keeper.cpp | ||||
* | C++ migration: REGISTRY_SET and REGISTRY_GET are gone, welcome templates and ↵ | Benoit Germain | 2024-03-21 | 9 | -75/+75 |
| | | | | lambdas | ||||
* | C++ migration: ThreadStatus, CancelRequest and CancelResult are enum class | Benoit Germain | 2024-03-20 | 5 | -69/+68 |
| | |||||
* | C++ migration: removed most typedef, removed uint_t | Benoit Germain | 2024-03-20 | 14 | -105/+87 |
| | |||||
* | C++ migration: more NULL → nullptr | Benoit Germain | 2024-03-20 | 11 | -90/+95 |
| | |||||
* | C++ migration: UniqueKey | Benoit Germain | 2024-03-20 | 13 | -62/+80 |
| | |||||
* | C++ migration: bool_t → bool | Benoit Germain | 2024-03-20 | 14 | -144/+131 |
| | |||||
* | Merge branch 'C-Implementation' | Benoit Germain | 2024-03-19 | 1 | -2/+2 |
|\ | |||||
| * | fix small internal issue with when hitting timeout on thread kill during ↵ | Benoit Germain | 2024-03-19 | 1 | -2/+2 |
| | | | | | | | | thread_cancel() in pthread implementation | ||||
* | | C++ migration: MSVC-specific "inline" is gone | Benoit Germain | 2024-03-19 | 1 | -5/+0 |
| | | |||||
* | | C++ migration: NULL → nullptr | Benoit Germain | 2024-03-19 | 6 | -79/+79 |
| | | |||||
* | | C++ migration: changed file extensions from .c to .cpp | Benoit Germain | 2024-03-19 | 11 | -1/+1 |
| | | |||||
* | | C++ migration: buildfixes | Benoit Germain | 2024-03-19 | 20 | -135/+135 |
|/ | | | | Essentially, buildfixes when compiling as C++, plus properly marking public API as extern "C" | ||||
* | Detect runtime LuaJIT/PUC-Lua mismatch | Benoit Germain | 2024-02-22 | 2 | -6/+17 |
| | |||||
* | src/threading.h: fix compilation on musl | Conrad Kostecki | 2024-01-23 | 1 | -1/+5 |
| | | | | Signed-off-by: Conrad Kostecki <conikost@gentoo.org> | ||||
* | Finalize version 3.16.2v3.16.2 | Benoit Germain | 2023-08-17 | 2 | -2/+2 |
| | |||||
* | Prevent crash on linux as non-root | Anssi Mäkinen | 2023-08-17 | 1 | -4/+4 |
| | | | | Fixes #218 | ||||
* | Minor tweaksv3.16.1 | Benoit Germain | 2023-08-16 | 5 | -11/+10 |
| | |||||
* | new .internal_allocator configuration IUNTESTED) | Benoit Germain | 2023-08-09 | 10 | -53/+54 |
| | | | | new configuration option .internal_allocator to help LuaJIT users. THIS IS YET UNTESTED, USE AT YOUR OWN RISKS. | ||||
* | tweaks to linux thread priority management | Benoit Germain | 2023-07-28 | 3 | -102/+116 |
| | |||||
* | moonjit support | Benoit Germain | 2022-03-09 | 10 | -69/+87 |
| | |||||
* | Bug in __lanesclone with 3 parameters mechanism fixed (index was wrong in ↵ | valid-ptr | 2022-03-01 | 1 | -4/+4 |
| | | | | inter_copy_function); Some comments improved | ||||
* | Make allocator threadsafe by default when running LuaJIT, because LuaJIT ↵ | Benoit Germain | 2022-02-21 | 5 | -21/+25 |
| | | | | allocator is not | ||||
* | use malloc/free for keeper control structure when compiling for LuaJIT | Benoit Germain | 2022-02-21 | 1 | -6/+18 |
| | |||||
* | NEVER use allocator obtained from lua_getallocf to allocate stuff manually ↵ | Benoit Germain | 2022-02-17 | 5 | -28/+74 |
| | | | | when compiling for LuaJIT | ||||
* | __lanesclone is now called only once with 3 parameters dest, source, size -> ↵ | Benoit Germain | 2022-02-08 | 2 | -118/+106 |
| | | | | BREAKS CUSTOM DEEP USERDATA API | ||||
* | Version bump | Benoit Germain | 2022-02-07 | 1 | -1/+1 |
| | |||||
* | A Lane's Lua state uses the Universe-defined allocator by default | Benoit Germain | 2022-02-07 | 1 | -2/+3 |
| | |||||
* | removed explicit calls to malloc/free | Benoit Germain | 2022-02-07 | 4 | -30/+43 |
| | | | | Lane and linda userdata were allocated with malloc/free, preventing embedders from fully controlling memory operations. Now all internal Lanes allocations go through the master state alloc function. | ||||
* | Changed all indentations to all whitespaces | Benoit Germain | 2022-02-07 | 20 | -6567/+6564 |
| | | | | Tabs mess up alignment of stack contents comments, so I'm done with them. | ||||
* | Replace deprecated pthread_yield with sched_yield | SoundBot | 2022-01-19 | 1 | -1/+1 |
| | | | Since glibc 2.34, pthread_yield is nonstandard and marked as deprecated. See: https://man7.org/linux/man-pages/man3/pthread_yield.3.html | ||||
* | fix require() wrapper to return all values returned by original require() | Benoit Germain | 2021-09-22 | 2 | -17/+13 |
| | |||||
* | Merge branch 'master' of https://github.com/LuaLanes/lanes | Benoit Germain | 2021-07-08 | 1 | -0/+1 |
|\ | |||||
| * | Update cancel.c | Benoit Germain | 2021-06-28 | 1 | -0/+1 |
| | | |||||
* | | fix function transfer with lua_dump for Lua 5.4 failing for functions big ↵ | Benoit Germain | 2021-07-08 | 2 | -15/+27 |
|/ | | | | enough to necessitate a buffer reallocation | ||||
* | fix stack overflow when transfering a clonable userdata referencing itself ↵ | Benoit Germain | 2021-06-26 | 3 | -138/+199 |
| | | | | through a uservalue | ||||
* | correctly transfer the uservalue of a deep userdata | Benoit Germain | 2021-06-24 | 10 | -418/+508 |
| | |||||
* | __lanesclone now receives the original as light userdata the first time it ↵ | Benoit Germain | 2021-06-23 | 1 | -4/+6 |
| | | | | is called | ||||
* | changed lanes.threads() output so that several lanes with the same name ↵ | Benoit Germain | 2021-06-16 | 2 | -21/+26 |
| | | | | | | don't clobber each other in the result table In the original implementations, the debug name was used as key, which meant that several lanes using the same name would cause only the oldest non-collected one to be listed in the results. Now the result is an array of tuples. | ||||
* | Merge pull request #190 from eligovision/lanes_lua51_bugfix | Benoit Germain | 2021-06-16 | 1 | -1/+20 |
|\ | | | | | Bug fix for Lua 5.1/LuaJIT: lua_getiuservalue must check if lua_getfe… | ||||
| * | Compat lua_setiuservalue fixed for Lua 5.1 and LuaJIT | valid-ptr | 2021-02-24 | 1 | -1/+6 |
| | | |||||
| * | Bug fix for Lua 5.1/LuaJIT: lua_getiuservalue must check if lua_getfenv ↵ | valid-ptr | 2021-02-15 | 1 | -0/+14 |
| | | | | | | | | returns global environment | ||||
* | | NetBSD support | nia | 2020-10-05 | 2 | -3/+15 |
|/ | | | | | | | | This adds support for NetBSD's flavour of pthreads. There are minor differences in the declaration of the non-portable pthread functions, and sched_yield is provided instead of pthread_yield_np. This allows LuaLanes to build and the test suite to run on NetBSD. | ||||
* | Makefile detect MinGW 64 as well as MinGW 32 | Benoit Germain | 2020-04-22 | 1 | -2/+2 |
| | |||||
* | fix THREAD_SET_AFFINITY always failing | Benoit Germain | 2020-04-22 | 1 | -2/+2 |
| | |||||
* | Lane cancellation rework | Benoit Germain | 2019-04-26 | 7 | -90/+133 |
| | | | | | opt.cancelstep is gone, hook is installed by lane:cancel() if requested lane:cancel() rework (see doc) | ||||
* | Moved cancellation code in separate files | Benoit Germain | 2019-04-22 | 7 | -228/+316 |
| |