Exemple #1
0
 def __buildWLockerComponent(self, commandTree):
     self._wlock = _Locker(name='writeLock', debug=self.logState())
     subTree = self.addComponent('WLOCK', commandTree)
     self.addAttribute('owner', subTree, self._wlock.Owner, default=True)
     self.addAttribute('release', subTree, readcb=self._wlock.release,
                       writecb=self._wlock.release)
     self.addAttribute('request', subTree,
                       readcb=self._wlock.request,
                       writecb=self._wlock.request)
Exemple #2
0
 def __buildWLockerComponent(self, commandTree):
     self._wlock = _Locker(name='writeLock', debug=self.logState())
     subTree = self.addComponent('WLOCK', commandTree)
     self.addAttribute('owner', subTree, self._wlock.Owner, default=True)
     self.addAttribute('release', subTree, readcb=self._wlock.release,
                       writecb=self._wlock.release)
     self.addAttribute('request', subTree,
                       readcb=self._wlock.request,
                       writecb=self._wlock.request)
Exemple #3
0
 def __build_wlocker_component(self, command_tree):
     self._wlock = _Locker(name='writeLock')
     sub_tree = self.add_component('WLOCK', command_tree)
     self.add_attribute('owner', sub_tree, self._wlock.Owner, default=True)
     self.add_attribute('release',
                        sub_tree,
                        read_cb=self._wlock.release,
                        write_cb=self._wlock.release)
     self.add_attribute('request',
                        sub_tree,
                        read_cb=self._wlock.request,
                        write_cb=self._wlock.request)