slide-rs / fibe-rs

Fiberized task queue in Rust
Apache License 2.0
11 stars 0 forks source link

Pinned Tasked Support #21

Open ghost opened 9 years ago

ghost commented 9 years ago

This is pretty simple, we can have a task (or collection of tasks) that do not implement Send. This means the task must run on the local thread (via local queues of course). The purpose of this is that a Pinned task needs to run on a specific thread because of Some TLS reason.

An example would be a thread that needs to run the input processing or to use an OpenGL context.