Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jan 5, 2024
1 parent e5527c2 commit 48ba680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/com/softwaremill/jox/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public Channel() {

/**
* Creates a buffered channel (when capacity is positive), or a rendezvous channel if the capacity is 0.
* Capacity cannot be negative.
*/
public Channel(int capacity) {
if (capacity < UNLIMITED_CAPACITY) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/com/softwaremill/jox/Segment.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ private enum State {
private final AtomicInteger pointers_notProcessedAndInterrupted;
private final boolean isRendezvousOrUnlimited;

Segment(long id, Segment prev, int pointers, boolean isRendezvous) {
Segment(long id, Segment prev, int pointers, boolean isRendezvousOrUnlimited) {
this.id = id;
this.prev = new AtomicReference<>(prev);
this.pointers_notProcessedAndInterrupted = new AtomicInteger(SEGMENT_SIZE + (pointers << POINTERS_SHIFT));
this.isRendezvousOrUnlimited = isRendezvous;
this.isRendezvousOrUnlimited = isRendezvousOrUnlimited;
}

long getId() {
Expand Down

0 comments on commit 48ba680

Please sign in to comment.