Class: SysVIPC::Sembuf

Inherits:
Object
  • Object
show all
Defined in:
lib/sysvipc.rb

Instance Method Summary collapse

Constructor Details

#initialize(sem_num, sem_op, sem_flg = 0) ⇒ Sembuf

Create a new Sembuf object for semaphore number sem_num, operation sem_op, and flags sem_flg. See semop(2).



178
179
180
181
182
183
# File 'lib/sysvipc.rb', line 178

def initialize(sem_num, sem_op, sem_flg = 0)
  orig_initialize
  self.sem_num = sem_num
  self.sem_op = sem_op
  self.sem_flg = sem_flg
end

Instance Method Details

#orig_initializeObject



173
# File 'lib/sysvipc.rb', line 173

alias :orig_initialize :initialize