forked from StrafesNET/strafe-client
note about using functions for input and output
This commit is contained in:
parent
d4c4d9e7d6
commit
407b322664
@ -29,6 +29,12 @@ enum Output{
|
|||||||
Buffered(PoolOrdering),//outputs are held back internally if they are out of order and order is demanded
|
Buffered(PoolOrdering),//outputs are held back internally if they are out of order and order is demanded
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//It would be possible to implement all variants
|
||||||
|
//with a query input function and callback output function but I'm not sure if that's worth it.
|
||||||
|
//Immediate = Condvar
|
||||||
|
//Queued = receiver.recv()
|
||||||
|
//a callback function would need to use an async runtime!
|
||||||
|
|
||||||
//realtime output is an arc mutex of the output value that is assigned every time a worker completes a job
|
//realtime output is an arc mutex of the output value that is assigned every time a worker completes a job
|
||||||
//buffered output produces a receiver object that can be passed to the creation of another worker
|
//buffered output produces a receiver object that can be passed to the creation of another worker
|
||||||
//when ordering is requested, output is ordered by the order each thread is run
|
//when ordering is requested, output is ordered by the order each thread is run
|
||||||
|
Loading…
Reference in New Issue
Block a user