Skip to content

Commit d927638

Browse files
committed
Add initial code for rolling file support
1 parent c3de3d3 commit d927638

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

affinity/src/main/java/net/openhft/affinity/AffinityLock.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class AffinityLock {
7777

7878
/**
7979
* Set the CPU layout for this machine. CPUs which are not mentioned will be ignored.
80-
* <p>
80+
* <p/>
8181
* Changing the layout will have no impact on thread which have already been assigned.
8282
* It only affects subsequent assignments.
8383
*
@@ -110,7 +110,7 @@ public static void cpuLayout(@NotNull CpuLayout cpuLayout) {
110110

111111
/**
112112
* Translate a layout id into a logical cpu id.
113-
* <p>
113+
* <p/>
114114
* This translation is perform so that regardless of how
115115
*
116116
* @param id
@@ -153,7 +153,7 @@ public static AffinityLock acquireLock() {
153153

154154
/**
155155
* Assign any free core to this thread.
156-
* <p>
156+
* <p/>
157157
* In reality, only one cpu is assigned, the rest of the threads for that core are reservable so they are not used.
158158
*
159159
* @return A handle for the current AffinityLock.
@@ -164,7 +164,7 @@ public static AffinityLock acquireCore() {
164164

165165
/**
166166
* Assign a cpu which can be bound to the current thread or another thread.
167-
* <p>
167+
* <p/>
168168
* This can be used for defining your thread layout centrally and passing the handle via dependency injection.
169169
*
170170
* @param bind if true, bind the current thread, if false, reserve a cpu which can be bound later.
@@ -176,7 +176,7 @@ public static AffinityLock acquireLock(boolean bind) {
176176

177177
/**
178178
* Assign a core(and all its cpus) which can be bound to the current thread or another thread.
179-
* <p>
179+
* <p/>
180180
* This can be used for defining your thread layout centrally and passing the handle via dependency injection.
181181
*
182182
* @param bind if true, bind the current thread, if false, reserve a cpu which can be bound later.
@@ -336,7 +336,7 @@ private boolean canReserve() {
336336

337337
/**
338338
* Give another affinity lock relative to this one based on a list of strategies.
339-
* <p>
339+
* <p/>
340340
* The strategies are evaluated in order to (like a search path) to find the next appropriate thread.
341341
* If ANY is not the last strategy, a warning is logged and no cpu is assigned (leaving the OS to choose)
342342
*

affinity/src/main/java/net/openhft/affinity/AffinityThreadFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* This is a ThreadFactory which assigns threads based the strategies provided.
26-
* <p>
26+
* <p/>
2727
* If no strategies are provided AffinityStrategies.ANY is used.
2828
*
2929
* @author peter.lawrey

affinity/src/main/java/net/openhft/affinity/impl/PosixJNAAffinity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Implementation of {@link IAffinity} based on JNA call of
2929
* sched_setaffinity(3)/sched_getaffinity(3) from 'c' library. Applicable for most
3030
* linux/unix platforms
31-
* <p>
31+
* <p/>
3232
* TODO Support assignment to core 64 and above
3333
*
3434
* @author peter.lawrey

0 commit comments

Comments
 (0)