Commit Graph

2 Commits

Author SHA1 Message Date
tidwall ef80c9bef1 Reuse queue allocation
The notes array doesn't need a new allocation every time it's
traversed. Check if it is nil and give it back it's previous
value.

Remove spinlock
2020-01-07 09:33:49 -07:00
Josh Baker dd88755b17 Added multithreaded support
It's now possible to fire up multiple event loops in separate
goroutines. All that's needed is to set the `events.NumLoops` options
before calling `Serve`.

There are a few breaking API changes.

- The events pass an evio.Conn param that represents the unique
incoming socket connection.
- Prewrite and Postwrite events have been removed.
- Wake and Dial functions have been removed.
- The Transform utility has been removed.

The older version has been tagged as `v0.1.0` for vendoring purposes.
2018-05-23 16:49:45 -07:00