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

Issue 7434052: Implement GetThreadCount() for Linux

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by Niels Martignène
Modified:
9 months, 4 weeks ago
Reviewers:
CC:
googletestframework_googlegroups.com
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Description

On Linux, each thread has its own subfolder inside /proc/[PID]/task. You can easily count the number of subfolders using stat/st_nlink - 2 (not reliable across filesystems, but OK on procfs).

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -7 lines) Patch
M src/gtest-port.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M test/gtest-port_test.cc View 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 1
Niels Martignène
11 years, 1 month ago (2013-03-04 03:15:16 UTC) #1
Add working implementation of GetThreadCount() for Linux.
Sign in to reply to this message.

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