Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 181279

Locking allows different types of resources to be locked by a transaction.

4 votes
3 answers
3k views

C++ upgradable RW lock implementation

I am using VS 2017 with C++ 17 standard set on Windows OS. What I'm missing in couple of heavily threaded projects is synchronizing mechanism that can be atomically upgraded from shared to exclusive a …
Milos Ljumovic's user avatar
-1 votes

C++ upgradable RW lock implementation

No locking occured. defer_state = 0, // Shared state. Lock is obtained in READ mode. shared_state = 1, // Exclusive state. … Supports RAII-style locking. …
Milos Ljumovic's user avatar