Class: SysVIPC::Sembuf
- Inherits:
-
Object
- Object
- SysVIPC::Sembuf
- Defined in:
- lib/sysvipc.rb
Instance Method Summary collapse
-
#initialize(sem_num, sem_op, sem_flg = 0) ⇒ Sembuf
constructor
Create a new Sembuf object for semaphore number
sem_num
, operationsem_op
, and flagssem_flg
. - #orig_initialize ⇒ Object
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_initialize ⇒ Object
173 |
# File 'lib/sysvipc.rb', line 173 alias :orig_initialize :initialize |