LuaLanes / lanes

Lanes is a lightweight, native, lazy evaluating multithreading library for Lua 5.1 to 5.4.
Other
437 stars 94 forks source link

New release? #206

Closed SoundBot closed 2 years ago

SoundBot commented 2 years ago

Do you mind making a new release? There are some changes in master that we've been waiting for.

benoit-germain commented 2 years ago

I think I'll make a new one when this lanesclone change is validated. Hopefully soon.

valid-ptr commented 2 years ago

I have some troubles with lindas using the latest master baf5414b853524bb20df2b92e4b4e13bb1e425cd. LuaJIT 2.1-git used Trying to figure out what's going on. Seems like some callbacks are running in the other thread in my Lua-VM after upgrade. My app crash on linda:receive in two words.

benoit-germain commented 2 years ago

I have run several tests with the LuaJIT-2.1-beta3 I got from luajit.org. All seems well as far as I can tell as long as I mutex-protect the memory allocations.

valid-ptr commented 2 years ago

Application crashes while sending+receiving some cloneable userdata in linda's values.

NOTE: I already use the newest __lanesclone mechanism ("3 args scheme" instead of "1 + 2 args scheme")

benoit-germain commented 2 years ago

This is strange, deep_test is working fine as far as I can tell, and I do send a clonable userdata through a linda.

valid-ptr commented 2 years ago

Resolved in #208

benoit-germain commented 2 years ago

Huh. I wonder how did this not get triggered by my test project... I'll have to add a case that runs through this bit of code. Well done.