Comments (4)
Oh, this is still not working. I got bus error
when trying to run examples/simple.rs
from coroutine-rs.
No, you can't. You should use Box::into_raw(wrapper) as *const _ as *mut libc::c_void
from coroutine-rs.
Not working, it doesn't typecheck :(
src/asymmetric.rs:271:71: 271:78 error: mismatched types:
expected `Box<_>`,
found `[closure@src/asymmetric.rs:220:23: 269:10 puller_ref:_, f:_, coro_ref:_]`
(expected box,
found closure) [E0308]
src/asymmetric.rs:271 coro.context.init_with(coroutine_initialize, 0, Box::into_raw(wrapper) as *const _ as *mut libc::c_void, &mut stack);
Or if I first box it then Box::into_raw
, it will still lead to runtime error
from coroutine-rs.
Please refer to this one: https://github.com/zonyitoo/context-rs/blob/master/examples/asymmetric.rs
They should be almost the same. I am extremely busy these days so I am not going to fix this lately.
from coroutine-rs.
Related Issues (20)
- mioco - coroutine-rs -based mio connection handling HOT 3
- Getting result from coroutines HOT 4
- Pushing and pulling parameters. HOT 5
- Stable Support HOT 3
- Disable printing on stderr? HOT 2
- Compilation fails due to use of deprecated `page_size`
- Broken by recent rustc nightly. HOT 7
- Can't run example HOT 4
- Relicense under dual MIT/Apache-2.0 HOT 10
- Query if coroutine is ready HOT 2
- Why do the closures taken by Coroutine::spawn have to have the static lifetime? HOT 1
- Having one coroutine exit stops the entire program. HOT 4
- thread safe documentation HOT 1
- Confusing README header HOT 1
- Run without blocking like thread::spawn HOT 3
- Unable to compile program: no `FnBox` in `boxed` HOT 3
- 这个库提供的协程是像`go`一样的`有栈协程`,还是像`kotlin`一样的`有栈协程`? HOT 3
- README update with relationship to current Rust? HOT 1
- Doesn't seem to build 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 coroutine-rs.