BIND 10 #2401: synchronous communication between DataSrcClientsMgr and DataSrcClientsBuilder

BIND 10 Development do-not-reply at isc.org
Wed Oct 24 07:24:58 UTC 2012


#2401: synchronous communication between DataSrcClientsMgr and
DataSrcClientsBuilder
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  jinmei                             |                Status:  new
                       Type:  task   |             Milestone:  Next-Sprint-
                   Priority:         |  Proposed
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  b10-auth                           |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by vorner):

 Hello

 Another approach that looks simpler to me is introducing a special „sync“
 command.

 There would be a boolean conditional variable (called synced). Before
 putting
 the sync command into the queue, we would set it to false. Then queue the
 command and wait on it to become true.

 The only thing the sync command does is setting the variable to true.

 So when the original thread wakes up, it can be sure everything up to the
 sync
 command was executed.

 P.S.: If it was haskell (and we could post functors to the queue), I'd
 propose
 creating a new conditional variable every time and sending a lambda
 function to
 set it to true. This works nicely even when more than one thread posts
 work
 O:-).

-- 
Ticket URL: <http://bind10.isc.org/ticket/2401#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list