Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DVR and Array of message object (4 times, buffers)

Solved!
Go to solution

Hi All,

 

Why DVR and Array of message object (N = 4) in obtain priority queue has been used in AF.

 

Thanks

0 Kudos
Message 1 of 2
(1,329 Views)
Solution
Accepted by LV_COder

That builds a thread-safe priority queue. The DVR provides the locking for the four internal queues, and each internal queue is one priority. Three priorities are public. The Emergency priority is only available within the framework. Without the DVR layer, simultaneous enqueues at different priorities concurrent with dequeue do not work out consistently in all possible thread arrangements. 

Message 2 of 2
(1,297 Views)