ProtoObjectObjectWAProcessMonitor
| mutex | process | responseSem | timeout |
| instance | class |
|---|---|
| as yet unclassified | as yet unclassified |
| mutex |
|---|
|
|
| process |
|---|
|
| responseSem |
|---|
|
| timeout |
|---|
|
|
| as yet unclassified |
|---|
| critical: aBlock ifError: errorBlock |
|value| mutex critical: [responseSem _ Semaphore new. process _ [[value _ aBlock on: Error do: errorBlock] ensure: [responseSem signal]] fork. responseSem wait]. process _ nil. ^ value |
| initialize |
timeout _ 5. mutex _ Semaphore forMutualExclusion. |
| terminate |
process ifNotNil: [process terminate] |
| timeout |
^ timeout |
| timeoutSeconds: aNumber |
timeout _ aNumber |
| as yet unclassified |
|---|
| new |
^ super new initialize |