We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
refs #18172 (comment)
when true: import std/sharedtables var table: SharedTable[string, string] init(table) table["a"] = "x" table["b"] = "y" table["c"] = "z" table.withValue("a", value): value[] = "m" table.withValue("d", value): discard value doAssert false do: # if "d" notin table table["d"] = "n" assert table.mget("a") == "m" assert table.mget("d") == "n"
hangs, after ^C I get:
Traceback (most recent call last) /Users/timothee/git_clone/nim/timn/tests/nim/all/t12358.nim(22) t12358 /Users/timothee/git_clone/nim/Nim_devel/lib/pure/collections/sharedtables.nim(57) []= SIGINT: Interrupted by Ctrl-C.
works
The text was updated successfully, but these errors were encountered:
The dead locks happened on linux too which is consistent with what it should be.
--threads:off: compiles and runs. --threads:on: hangs
--threads:off
--threads:on
Works on windows with/without threads options because the locks module uses reentrant mutex on windows.
Sorry, something went wrong.
on osx, compilation works fine, and running hangs regardless of --threads:on|off
--threads:on|off
ok now I remember I actually looked into related issues a while back:
No branches or pull requests
refs #18172 (comment)
Example
Current Output
hangs, after ^C I get:
Expected Output
works
Additional Information
The text was updated successfully, but these errors were encountered: