1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-21 07:17:03 +00:00

Created Fiber Threads (markdown)

David Schmenk
2017-12-14 20:41:28 -08:00
parent 3abf05817b
commit 30f9e38023
+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
```