Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

critical bugfix #31

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/malebolgia.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
shouldEndAt: Time
usesTimeout: bool

proc `=destroy`(m: var Master) {.inline.} =

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / linux-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / macos-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / windows-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / windows-i386-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / linux-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / macos-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / windows-amd64-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]

Check warning on line 19 in src/malebolgia.nim

View workflow job for this annotation

GitHub Actions / windows-i386-nim-devel (master)

A custom '=destroy' hook which takes a 'var T' parameter is deprecated; it should take a 'T' parameter [Deprecated]
deinitCond(m.c)
deinitLock(m.L)

Expand Down Expand Up @@ -137,13 +137,14 @@
try:
atomicInc busyThreads
item.t.invoke(item.result)
atomicDec busyThreads
except:
acquire(item.m.L)
if item.m.error.len == 0:
let e = getCurrentException()
item.m.error = "SPAWN FAILURE: [" & $e.name & "] " & e.msg & "\n" & getStackTrace(e)
release(item.m.L)
finally:
atomicDec busyThreads

# but mark it as completed either way!
taskCompleted item.m[]
Expand Down
Loading