Skip to content

Commit

Permalink
Bump required nim version
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahr committed Sep 28, 2024
1 parent d6aa78a commit 287aaf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ jobs:
sanitize-threads: 'yes'
timeout-minutes: 5

- runs-on: ubuntu-latest
nim-version: 'latest:1.6'
sanitize-threads: 'no'
timeout-minutes: 5

- runs-on: ubuntu-latest
nim-version: 'latest:1.4'
sanitize-threads: 'no'
timeout-minutes: 5

steps:
# Optimization: re-use cached Nim->C compilation
- name: Restore cache
Expand Down
2 changes: 1 addition & 1 deletion lockfreequeues.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
srcDir = "src"

# Dependencies
requires "nim >= 1.2.0"
requires "nim >= 2.0.0"

# Tasks
task test, "Runs the test suite":
Expand Down
4 changes: 2 additions & 2 deletions src/lockfreequeues/mupsic.nim
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ proc push*[N, P: static int, T](
return false

newTail = incOrReset(prevTail, 1, N)
assert validateHeadAndTail(head, newTail, N)
#assert validateHeadAndTail(head, newTail, N)
self.queue.producerTails[self.idx].release(newTail)

if self.queue.prevProducerIdx.compareExchangeWeak(
Expand Down Expand Up @@ -210,7 +210,7 @@ proc push*[N, P: static int, T](
count = avail

newTail = incOrReset(prevTail, count, N)
assert validateHeadAndTail(head, newTail, N)
#assert validateHeadAndTail(head, newTail, N)
self.queue.producerTails[self.idx].release(newTail)

if self.queue.prevProducerIdx.compareExchangeWeak(
Expand Down

0 comments on commit 287aaf9

Please sign in to comment.