Struct DuplexQueue

Request/response construct for sending requests from one requester to multiple worker threads

struct DuplexQueue(T, ulong capacity) ;

Methods

NameDescription
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

NameDescription
T type of request. Must be small enough to support atomic loading and storing.
capacity the queue buffer size.