Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(173)

Issue 157118: Add recursive_mutex to the header file. I need this for the LRU cache implementation.

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 6 months ago by cykoo1
Modified:
16 years, 6 months ago
Reviewers:
Jeffrey Yasskin
CC:
google-concurrency-library_googlegroups.com
Visibility:
Public.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address Jeffrey's comment. #

Patch Set 3 : Address Jeffrey's comment #

Patch Set 4 : Remove an extra whiteline. #

Patch Set 5 : Rename basic_mutex to _posix_mutex and put the class under a namespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
M include/mutex.h View 1 2 3 4 2 chunks +31 lines, -11 lines 0 comments Download
M src/mutex.cc View 2 3 4 1 chunk +11 lines, -4 lines 0 comments Download
M testing/lock_test.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7
cykoo1
Let me know if you prefer the implementation looks something like the following or something ...
16 years, 6 months ago (2009-11-20 22:56:51 UTC) #1
Jeffrey Yasskin
http://codereview.appspot.com/157118/diff/1/2 File include/mutex.h (right): http://codereview.appspot.com/157118/diff/1/2#newcode48 include/mutex.h:48: assert(pthread_mutexattr_init(&mutex_attribute_) == 0); Consider switching to handle_err_return(pthread...) from posix_errors.h. ...
16 years, 6 months ago (2009-11-20 23:57:13 UTC) #2
cykoo1
http://codereview.appspot.com/157118/diff/1/2 File include/mutex.h (right): http://codereview.appspot.com/157118/diff/1/2#newcode48 include/mutex.h:48: assert(pthread_mutexattr_init(&mutex_attribute_) == 0); On 2009/11/20 23:57:13, Jeffrey Yasskin wrote: ...
16 years, 6 months ago (2009-11-21 23:21:11 UTC) #3
Jeffrey Yasskin
Looks good! The only thing I'd change is to rename basic_mutex to something starting with ...
16 years, 6 months ago (2009-11-22 01:31:53 UTC) #4
cykoo1
I have renamed basic_mutex to _posix_mutex. I've put the class basic_mutex into a namespace. Or ...
16 years, 6 months ago (2009-11-23 02:54:55 UTC) #5
Jeffrey Yasskin
I meant "internal" to be the name of the namespace, but your choice is fine ...
16 years, 6 months ago (2009-11-23 04:21:14 UTC) #6
cykoo1
16 years, 6 months ago (2009-11-23 18:26:26 UTC) #7
committed and pushed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b