Skip to content

Commit 6f68985

Browse files
committed
tidy doco
1 parent 4ff58df commit 6f68985

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,21 @@ try (final AffinityLock al = AffinityLock.acquireLock()) {
129129
----
130130
In this example, the library will prefer a free CPU on the same Socket as the first thread, otherwise it will pick any free CPU.
131131

132-
=== Getting the thread id.
132+
=== Getting the thread id
133133
You can get the current thread id using
134134
[source, java]
135135
----
136136
137137
int threadId = AffinitySupport.getThreadId();
138138
----
139-
=== Determining which CPU you are running on.
139+
=== Determining which CPU you are running on
140140
You can get the current CPU being used by
141141
[source, java]
142142
----
143143
144144
int cpuId = AffinitySupport.getCpu();
145145
----
146-
=== Controlling the affinity more directly.
146+
=== Controlling the affinity more directly
147147
The affinity of the process on start up is
148148
[source, java]
149149
----
@@ -223,7 +223,7 @@ try (AffinityLock lock = AffinityLock.acquireLockLastMinus(n)) {
223223

224224
I have the cpuId in a configuration file, how can I set it using a string?
225225

226-
=== Answer: use one of the following.
226+
=== Answer: use one of the following
227227

228228
[source,java]
229229
----

0 commit comments

Comments
 (0)