Method: Adorn::Cache.semaphore

Defined in:
lib/adorn/cache.rb

.semaphoreMutex

Used to create a critical area during writes to Adorn::Cache

Returns:

  • (Mutex)


16
17
18
# File 'lib/adorn/cache.rb', line 16

def semaphore
  Thread.current[:semaphore] ||= Mutex.new
end