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

Issue 7434052: Implement GetThreadCount() for Linux

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by Niels Martignène
Modified:
1 year, 1 month 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, 4 months 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