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

sharedlists/sharedtables modules need threads option #18185

Closed
wants to merge 7 commits into from

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Jun 5, 2021

Close #18206

Ref #12231
Ref #12330

It might break things(CI should tell us a bit about it). I'm thinking that using RLock in SharedTable object may help #18176. It that's true, we have to break things or think of other ways.

@timotheecour
Copy link
Member

std/sharedtables should still work without --threads:on, and when compileOption("threads") can be used as needed

@ringabout
Copy link
Member Author

So what about rlocks module, it is very inconsistent.

locks doesn't require threads options
rlocks requires threads options

So a module cannot switch from lock to rlock or add rlock support easily.

@timotheecour
Copy link
Member

rlocks requires threads options

maybe that's what should be fixed? I can look into it more tmrw if needed

ringabout added a commit to ringabout/Nim that referenced this pull request Jun 7, 2021
@ringabout ringabout mentioned this pull request Jun 7, 2021
@Araq Araq closed this in #18206 Jun 7, 2021
Araq pushed a commit that referenced this pull request Jun 7, 2021
Araq pushed a commit that referenced this pull request Jun 20, 2021
* Revert "add missing import to asynchttpserver's example"

This reverts commit 7ef364a.

* alternative to #18185

* add std/mutexes

* cvlose #17696

* Revert "add std/mutexes"

This reverts commit 69abc8b.

* tiny

* test

* improve terminal docs

* follow advice
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
* Revert "add missing import to asynchttpserver's example"

This reverts commit 7ef364a.

* alternative to nim-lang#18185

* add std/mutexes

* cvlose nim-lang#17696

* Revert "add std/mutexes"

This reverts commit 69abc8b.

* tiny

* test

* improve terminal docs

* follow advice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants