Struct DuplexQueue
Request/response construct for sending requests from one requester to multiple worker threads
struct DuplexQueue(T, ulong capacity)
;
Methods
Name | Description |
---|---|
open
|
Register number of worker threads |
pullRequest
|
worker-thread APIs |
pullResult
|
Receive a single response |
submitRequest
|
Submit a single request |
submitResult
|
worker-thread APIs |
Parameters
Name | Description |
---|---|
T | type of request. Must be small enough to support atomic loading and storing. |
capacity | the queue buffer size. |