mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-04-21 07:17:03 +00:00
Created Fiber Threads (markdown)
+17
@@ -0,0 +1,17 @@
|
||||
[Fibers](https://en.wikipedia.org/wiki/Fiber_(computer_science)) are non-preemptive threads. They can be used for co-routines or event-driven applications. Accessed via:
|
||||
|
||||
**Usage:**
|
||||
|
||||
[`include "inc/fiber.plh"`](https://github.com/dschmenk/PLASMA/blob/master/src/libsrc/fiber.pla)
|
||||
|
||||
**Functions:**
|
||||
|
||||
```
|
||||
fbrInit(numPool)
|
||||
fbrStop(fid)
|
||||
fbrExit()
|
||||
fbrStart(defaddr, param)
|
||||
fbrYield()
|
||||
fbrHalt()#0
|
||||
fbrResume(fid)#0
|
||||
```
|
||||
Reference in New Issue
Block a user