REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.05 KB
Close
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/ConditionVariable/cdesc-ConditionVariable.yaml
Text
Base64
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: ConditionVariable objects augment class Mutex. Using condition variables, it is possible to suspend while in the middle of a critical section until a resource becomes available. - !ruby/struct:SM::Flow::P body: "Example:" - !ruby/struct:SM::Flow::VERB body: " require 'thread'\n\n mutex = Mutex.new\n resource = ConditionVariable.new\n\n a = Thread.new {\n mutex.synchronize {\n # Thread 'a' now needs the resource\n resource.wait(mutex)\n # 'a' can now have the resource\n }\n }\n\n b = Thread.new {\n mutex.synchronize {\n # Thread 'b' has finished using the resource\n resource.signal\n }\n }\n" constants: [] full_name: ConditionVariable includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: broadcast - !ruby/object:RI::MethodSummary name: signal - !ruby/object:RI::MethodSummary name: wait name: ConditionVariable superclass: Object
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
broadcast-i.yaml
263 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-ConditionVariable.yaml
1.05 KB
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new-c.yaml
239 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
signal-i.yaml
270 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wait-i.yaml
297 B
lrw-r--r--
2023-07-26 13:47:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).