Comments (4)
Hangs for me too. Are you on 64bit Linux? If so, this is probably a duplicate of issue #16.
from lanes.
I'm on Ubuntu 12.04 AMD64 with stock Lua 5.1.4. I feel this is different from #16. In pingpong function, Linda doesn't work at all. When we send a message to Linda, the other part can't receive it. Anyway, I'm not sure if this shares the same cause as #16.
from lanes.
Yep that's strange, I'll look into it, I reproduce it on Win32 as well.
from lanes.
What happens is that your linda keys '0' and '1' are strings that can be auto-coerced to numbers. Because of this, linda:send() interpret them as timeouts and decide there is no data to send, thus raising an error and aborting the lane. Changing your code as follows fixes your script.
local t1, err1 = lanes.gen("*", pingpong)("L1", 'a', 'b', true)
local t2, err2 = lanes.gen("*", pingpong)("L2", 'b', 'a', false)
from lanes.
Related Issues (20)
- Rockspec for all versions need to update the source url away from using the git:// prefix, which is being deprecated by Github HOT 10
- Cannot use DeepPrelude, HOT 1
- Suggestion: use lua_objlen to get size of userdata for __lanesclone HOT 6
- New release? HOT 7
- Is it possible to make lanes lanes 3.15.1 work with luajit 2.0.4 ? HOT 1
- Issue compiling when using Moonjit 2.3? HOT 8
- module 'lanes.core' not found HOT 1
- . HOT 1
- Error when running inside Docker container without sys_nice HOT 8
- Sometimes segmentation fault with Pallene? HOT 2
- In comparison.html, lanes.new() does not exist. HOT 1
- Use LuaRocks to install with HAVE_LANE_TRACKING HOT 1
- luajit+lualanes,Program crashed in ARM32 HOT 6
- pthread_create error with GitHub Actions HOT 1
- Lanes crash on require HOT 12
- Loading wximage on a separate thread and passing back the address HOT 9
- Passing back Values to the main thread without ending the lane HOT 7
- Latest release missing includes? Or reverted good changes? HOT 2
- "Bad library name: lfs" HOT 5
- deadlock during linda operation in specific circumstances HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lanes.