Add (again) default semaphore value; all tests passing on Linux.
This commit is contained in:
parent
842ff179ec
commit
60b1cd8e53
|
@ -55,7 +55,7 @@ module ProcessShared
|
|||
# resort).
|
||||
#
|
||||
# @param [Integer] value the initial semaphore value
|
||||
def initialize(value)
|
||||
def initialize(value = 1)
|
||||
@sem = SharedMemory.new(LibC.type_size(:sem_t))
|
||||
sem_init(@sem, 1, value)
|
||||
ObjectSpace.define_finalizer(self, self.class.make_finalizer(@sem))
|
||||
|
|
Loading…
Reference in New Issue