aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Version bumpBenoit Germain2022-02-071-1/+1
|
* A Lane's Lua state uses the Universe-defined allocator by defaultBenoit Germain2022-02-071-2/+3
|
* removed explicit calls to malloc/freeBenoit Germain2022-02-074-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 whitespacesBenoit Germain2022-02-0720-6567/+6564
| | | | Tabs mess up alignment of stack contents comments, so I'm done with them.
* Replace deprecated pthread_yield with sched_yieldSoundBot2022-01-191-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 Germain2021-09-222-17/+13
|
* Merge branch 'master' of https://github.com/LuaLanes/lanesBenoit Germain2021-07-081-0/+1
|\
| * Update cancel.cBenoit Germain2021-06-281-0/+1
| |
* | fix function transfer with lua_dump for Lua 5.4 failing for functions big ↵Benoit Germain2021-07-082-15/+27
|/ | | | enough to necessitate a buffer reallocation
* fix stack overflow when transfering a clonable userdata referencing itself ↵Benoit Germain2021-06-263-138/+199
| | | | through a uservalue
* correctly transfer the uservalue of a deep userdataBenoit Germain2021-06-2410-418/+508
|
* __lanesclone now receives the original as light userdata the first time it ↵Benoit Germain2021-06-231-4/+6
| | | | is called
* changed lanes.threads() output so that several lanes with the same name ↵Benoit Germain2021-06-162-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_bugfixBenoit Germain2021-06-161-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 LuaJITvalid-ptr2021-02-241-1/+6
| |
| * Bug fix for Lua 5.1/LuaJIT: lua_getiuservalue must check if lua_getfenv ↵valid-ptr2021-02-151-0/+14
| | | | | | | | returns global environment
* | NetBSD supportnia2020-10-052-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 32Benoit Germain2020-04-221-2/+2
|
* fix THREAD_SET_AFFINITY always failingBenoit Germain2020-04-221-2/+2
|
* Lane cancellation reworkBenoit Germain2019-04-267-90/+133
| | | | | opt.cancelstep is gone, hook is installed by lane:cancel() if requested lane:cancel() rework (see doc)
* Moved cancellation code in separate filesBenoit Germain2019-04-227-228/+316
|
* Fix _GNU_SOURCE redefinition (#171)Benoit Germain2019-04-221-4/+9
|
* DEBUGSPEW_CODE in cancel_hookBenoit Germain2019-04-202-1/+2
|
* lane:cancel internal code refactorizationBenoit Germain2019-04-192-81/+74
|
* [*] Hotfix for 64-bit iOS.Igor Ivanov2018-12-201-1/+1
|
* Fix clonable userdata uservalue transferBenoit Germain2018-11-301-5/+4
|
* don't test __lanesignore for POD types (-> slightly faster when trasnfering ↵Benoit Germain2018-11-302-67/+99
| | | | | | lots of data) + more code refactoring
* Split a megafunction in smaller partsBenoit Germain2018-11-281-234/+259
|
* Lua 5.4 supportBenoit Germain2018-11-277-33/+149
|
* Merge branch 'master' of https://github.com/LuaLanes/lanesBenoit Germain2018-11-274-11/+96
|\
| * Threads compilation for Android fixed; Thread can't be killed to date ↵valid-ptr2018-11-272-1/+19
| | | | | | | | (warning in logcat).
| * Trailing whitespaces deleted from lanes.luavalid-ptr2018-11-271-10/+10
| |
| * Merge pull request #166 from eligovision/lanes_linux_linkingBenoit Germain2018-11-261-0/+4
| |\ | | | | | | 'Linking error while embedding Lanes' on Linux fix
| | * 'Linking error while embedding Lanes' on Linux fix simplifiedKonstantin S. Matveyev2018-11-261-4/+2
| | |
| | * 'Linking error while embedding Lanes' on Linux fixKonstantin S. Matveyev2018-11-261-0/+6
| | |
| * | Merge pull request #167 from eligovision/lanes_threads_macosBenoit Germain2018-11-262-0/+63
| |\ \ | | | | | | | | Compilation of 'threading.c' fixed for macos
| | * | Compilation of 'threading.c' fixed for macosvalid-ptr2018-11-262-0/+63
| | |/
* | / replace hardcoded "_LOADED" with lua-provided LUA_LOADED_TABLEBenoit Germain2018-11-272-3/+3
|/ /
* / Lanes version available in public headerBenoit Germain2018-11-263-4/+15
|/
* User-provided unknown configure option raises an errorBenoit Germain2018-11-261-0/+6
|
* protect_allocator configure option is gone, long live allocator (more ↵Benoit Germain2018-11-257-90/+147
| | | | embedders-friendly)
* finish registry access revampBenoit Germain2018-11-232-36/+28
|
* Fix a buffer overrunBenoit Germain2018-11-231-1/+1
|
* Raise an error instead of crashing when attempting to transfer a non-deep ↵Benoit Germain2018-11-231-1/+8
| | | | full userdata
* More DEBUGSPEW loggingBenoit Germain2018-11-212-35/+92
|
* Fix build errorsBenoit Germain2018-11-192-1/+2
|
* Internal code tweaksBenoit Germain2018-11-199-158/+202
| | | | | | * Registry access code utility macros * CONFIG_REGKEY and LOOKUP_REGKEY are now lightuserdata instead of strings * Stack checking debug macros improvements
* Deep userdata must embed DeepPrelude to save an allocation (also changes ↵Benoit Germain2018-11-156-51/+42
| | | | Deep protocol)
* split linda code in a separate fileBenoit Germain2018-11-154-1012/+1055
|
* fix a bunch of compilation warnings (issue #157)Benoit Germain2018-11-117-82/+88
|