parameters: (self, tsk)
docstring: Mark the semaphore as used by the given task (not re-entrant).
  
  		:param tsk: task object
  		:type tsk: :py:class:`waflib.Task.Task`
  		:raises: :py:class:`IndexError` in case the resource is already acquired
docstring_summary: Mark the semaphore as used by the given task (not re-entrant).
docstring_tokens: Mark the semaphore as used by the given task ( not re - entrant ) .
function: def acquire(self, tsk):
  		"""
  		Mark the semaphore as used by the given task (not re-entrant).
  
  		:param tsk: task object
  		:type tsk: :py:class:`waflib.Task.Task`
  		:raises: :py:class:`IndexError` in case the resource is already acquired
  		"""
  		if self.is_locked():
  			raise IndexError('Cannot lock more %r' % self.locking)
  		self.locking.add(tsk)
function_tokens: def acquire ( self , tsk ) : if self . is_locked ( ) : raise IndexError ( 'Cannot lock more %r' % self . locking ) self . locking . add ( tsk )