开发者

How can I set the size of an Ace activation Queue?

开发者 https://www.devze.com 2022-12-11 05:15 出处:网络
That is, how can i limit the number of tokens/elements the Queue 开发者_StackOverflow中文版can hold?

That is, how can i limit the number of tokens/elements the Queue 开发者_StackOverflow中文版can hold?

Example:

I have a low level driver that can only process one request at a time.

I am using the Ace activation Queue to limit the request (there could be up to 10 pending), but only one is allowed to go on the bus. The rest have to wait until the first request ends.

Thanks for helping me out.

Doron.


Do you mean:

an_activation_queue.queue()->high_water_mark(new_size);

?

0

精彩评论

暂无评论...
验证码 换一张
取 消