HevTaskSystem
HevTaskSystem is a simple, lightweight multi-task system (coroutines) for Linux.
The task system is executed by a Linux process/thread. In task system, you can creates many tasks and attachs to task system. When a task yield or blocked by I/O, the scheduler will pick a suitable task from running list and switch to. The memory space, file descriptors and other resources are shared for all tasks in task system. Every task has a private, standalone task structure (#HevTask) and stack in heap of the process.
In task, you can allocate memory from heap, read and write data from to stack, and to do I/O operations in synchronized mode.
How to Build
Linux:
git clone git://github.com/heiher/hev-task-system
cd hev-task-system
make
Android:
mkdir hev-task-system
cd hev-task-system
git clone git://github.com/heiher/hev-task-system jni
nkd-build
Demos
Authors
- Heiher - https://hev.cc
License
LGPL