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

Issue 129067: 148 - ThreadLocal and Mutex for pthread

Can't Edit
Can't Publish+Mail
Start Review
Created:
1 month, 3 weeks ago by mfazekas
Modified:
2 weeks, 2 days ago
Reviewers:
florianlink, Vlad
CC:
Zhanyong Wan, Zhanyong, googletestframework_googlegroups.com
SVN Base:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1

Total comments: 16

Patch Set 2 : 148 - ThreadLocal and Mutex for pthread - round2

Total comments: 17

Patch Set 3 : 148 - ThreadLocal and Mutex for pthread

Patch Set 4 : 148 - ThreadLocal and Mutex for pthread

Total comments: 14

Patch Set 5 : 148 - ThreadLocal and Mutex for pthread

Total comments: 4

Patch Set 6 : 148 - ThreadLocal and Mutex for pthread

Total comments: 4

Patch Set 7 : 148 - ThreadLocal and Mutex for pthread

Patch Set 8 : // The default ThreadLocal constructor requires T to have a default constructor.

Patch Set 9 : 148 - ThreadLocal and Mutex for pthread

Patch Set 10 : 148 - ThreadLocal and Mutex for pthread

Patch Set 11 : 148 - ThreadLocal and Mutex for pthread

Patch Set 12 : 148 - ThreadLocal and Mutex for pthread

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M include/gtest/internal/gtest-port.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks 133 lines 2 comments Download
M src/gtest-internal-inl.h View 2 3 4 5 6 2 chunks 69 lines 0 comments Download
M src/gtest-port.cc View 1 2 3 4 5 6 2 chunks 136 lines 0 comments Download
M test/gtest-port_test.cc View 2 3 4 5 6 2 chunks 282 lines 1 comment Download
M test/gtest_stress_test.cc View 2 3 4 5 6 1 chunk 12 lines 0 comments Download
M test/gtest_unittest.cc View 1 2 3 4 5 6 2 chunks 36 lines 0 comments Download

Messages

Total messages: 18
mfazekas
http://codereview.appspot.com/129067/diff/1/3 File include/gtest/internal/gtest-port.h (right): http://codereview.appspot.com/129067/diff/1/3#newcode755 Line 755: I'm throwing an exception when the pthread api ...
1 month, 3 weeks ago
florianlink
I found a small race that is probably only relevant for the unit testing. http://codereview.appspot.com/129067/diff/1/4 ...
1 month, 2 weeks ago
mfazekas
http://codereview.appspot.com/129067/diff/1/4 File src/gtest-port.cc (right): http://codereview.appspot.com/129067/diff/1/4#newcode113 Line 113: owner_ = 0; Yes, the owner_ = 0 ...
1 month, 2 weeks ago
Vlad
Hi Miklos, Thanks for the patch. This is a big one! There are some comments ...
1 month, 2 weeks ago
mfazekas
This is a new patch that fixed these issues since the last patch: - uses ...
1 month ago
Vlad
Hi Miklos, This is shaping up. :-) Here are some more comments. It is desirable ...
1 month ago
mfazekas
Vlad, See comments inline. I'll move #include <pthread.h> out of gtest-port.h. Miklos http://codereview.appspot.com/129067/diff/4001/5004 File include/gtest/internal/gtest-port.h ...
1 month ago
Vlad
Miklos, Are your latest changes uploaded here? I don't see the ThreadLocal changes. Thanks, Vlad ...
4 weeks, 1 day ago
mfazekas
Fixes: - fixed potential race using global mutex (wasn't really relevant as this could happen ...
4 weeks, 1 day ago
Vlad
http://codereview.appspot.com/129067/diff/10001/9011 File include/gtest/internal/gtest-port.h (right): http://codereview.appspot.com/129067/diff/10001/9011#newcode757 include/gtest/internal/gtest-port.h:757: class LockGuard { Why have an extra class for ...
3 weeks, 6 days ago
mfazekas
Vlad, Thanks for the comments. I've fixed some of the issues and commented others where ...
3 weeks, 5 days ago
Vlad
Just a couple more things. http://codereview.appspot.com/129067/diff/10008/10009 File test/gtest-port_test.cc (right): http://codereview.appspot.com/129067/diff/10008/10009#newcode770 test/gtest-port_test.cc:770: temp_ = counter_; It ...
3 weeks, 4 days ago
mfazekas
-Small fixes in port_test: i'm using usleep instead of starting/joining a thread for forcing a ...
3 weeks, 1 day ago
Vlad
I think we are almost done here. Once we resolve the last issue I take ...
2 weeks, 5 days ago
mfazekas
It sounds great that we're getting close to the finish. See comments bellow about the ...
2 weeks, 5 days ago
Vlad
You are right, it looks like we can guarantee per-thread object destruction by the time ...
2 weeks, 5 days ago
mfazekas
Changes: - added comment about lifetime of threadlocals - removed ThreadId stuff, modified the test ...
2 weeks, 4 days ago
Vlad
2 weeks, 2 days ago
Hi Miklos,

Cool, we are there. :-) I'll update it to conform to the style guide now and
commit into svn. It may take some time; I will let you know when it's in.

Cheers,
Vlad

http://codereview.appspot.com/129067/diff/13024/11038
File include/gtest/internal/gtest-port.h (right):

http://codereview.appspot.com/129067/diff/13024/11038#newcode809
include/gtest/internal/gtest-port.h:809: // not alive. The managed object will
exist no longer then the ThreadLocal
On 2009/11/17 00:08:36, mfazekas wrote:
> I've inserted a not here, as the original was - "unless the ThreadLocal
managing
> is alive"

Cool, thanks.
Sign in to reply to this message.

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