Skip to content

Commit a238b02

Browse files
committed
minor doc updates
1 parent e6d858e commit a238b02

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

lib/concurrent/edge/atomic_markable_reference.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ module Edge
66
# An atomic reference which maintains an object reference along with a mark bit
77
# that can be updated atomically.
88
#
9-
# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicMarkableReference.html java.util.concurrent.atomic.AtomicMarkableReference
10-
#
11-
# @api Edge
9+
# @see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/AtomicMarkableReference.html
10+
# java.util.concurrent.atomic.AtomicMarkableReference
1211
class AtomicMarkableReference < ::Concurrent::Synchronization::Object
1312

1413
private(*attr_atomic(:reference))

lib/concurrent/edge/cancellation.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
module Concurrent
22

33
# Provides tools for cooperative cancellation.
4-
# Inspired by https://msdn.microsoft.com/en-us/library/dd537607(v=vs.110).aspx
4+
# Inspired by <https://msdn.microsoft.com/en-us/library/dd537607(v=vs.110).aspx>
5+
#
56
# @example
67
# # Create new cancellation. `cancellation` is used for cancelling, `token` is passed down to
78
# # tasks for cooperative cancellation
89
# cancellation, token = Concurrent::Cancellation.create
910
# Thread.new(token) do |token|
10-
# # Count 1+1 (simulating some other meaningful work) repeatedly until the token is cancelled through
11-
# # cancellation.
11+
# # Count 1+1 (simulating some other meaningful work) repeatedly
12+
# # until the token is cancelled through cancellation.
1213
# token.loop_until_canceled { 1+1 }
1314
# end
1415
# sleep 0.1

lib/concurrent/edge/lock_free_queue.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Concurrent
22

3+
# @!visibility private
34
class LockFreeQueue < Synchronization::Object
45

56
class Node < Synchronization::Object

lib/concurrent/synchronization/condition.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module Concurrent
22
module Synchronization
3+
# TODO (pitr-ch 04-Dec-2016): should be in edge
34
class Condition < LockableObject
45
safe_initialization!
56

67
# TODO (pitr 12-Sep-2015): locks two objects, improve
8+
# TODO (pitr 26-Sep-2015): study
9+
# http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8-b132/java/util/concurrent/locks/AbstractQueuedSynchronizer.java#AbstractQueuedSynchronizer.Node
710

811
singleton_class.send :alias_method, :private_new, :new
912
private_class_method :new

lib/concurrent/synchronization/lock.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Concurrent
22
module Synchronization
3+
# TODO (pitr-ch 04-Dec-2016): should be in edge
34
class Lock < LockableObject
45
# TODO use JavaReentrantLock on JRuby
56

lib/concurrent/synchronization/object.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module Synchronization
2222
# - volatile instance variables see {Object.attr_volatile}
2323
# - volatile instance variables see {Object.attr_atomic}
2424
class Object < ObjectImplementation
25+
# TODO make it a module if possible
2526

2627
# @!method self.attr_volatile(*names)
2728
# Creates methods for reading and writing (as `attr_accessor` does) to a instance variable with

0 commit comments

Comments
 (0)