This module provides a uniform reference counted interface for classes to use.
Called to clean up resources once the ref count drops to zero.
# File lib/rex/sync/ref.rb, line 53 def cleanup end
Decrements the total number of references. If the reference count reaches zero, true is returned. Otherwise, false is returned.
# File lib/rex/sync/ref.rb, line 38 def deref @_references_mutex.synchronize { if ((@_references -= 1) == 0) cleanup true else false end } end
Generated with the Darkfish Rdoc Generator 2.