-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major refactor/rework, bug fix multithread feature
- renamed `co_go`, `co_wait`, `co_execute`, `co_send`, `co_recv` to `go`, `wait_for`, `launch`, `chan_send`, `chan_recv` - added `go_stack_set` to set global coroutine runtime stack size - renamed `routine_t` struct fields to match actual behaviors - move coroutine thread local handles to single thread local struct - added CMake build option `CO_MT_STATE=true` to enable still staging multithreading startup - added functions `async/await` with same standard functionality ** Note enabling multithread breaks/produce libuv bugs, and various libuv examples no longer work as expected, coroutines resume/switch back to scheduler to does happen, programs just exits. **
- Loading branch information
1 parent
7e70514
commit 2f19971
Showing
34 changed files
with
558 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.