Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
glog
Commits
a808e435
Commit
a808e435
authored
Jul 06, 2017
by
Shinichiro Hamaji
Committed by
GitHub
Jul 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #157 from sergiud/cygwin-support
Cygwin support
parents
a835da8e
96a09ae0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
googletest.h
src/googletest.h
+2
-2
utilities.cc
src/utilities.cc
+1
-1
No files found.
src/googletest.h
View file @
a808e435
...
@@ -521,7 +521,7 @@ class Thread {
...
@@ -521,7 +521,7 @@ class Thread {
virtual
~
Thread
()
{}
virtual
~
Thread
()
{}
void
SetJoinable
(
bool
)
{}
void
SetJoinable
(
bool
)
{}
#if defined(OS_WINDOWS)
||
defined(OS_CYGWIN)
#if defined(OS_WINDOWS)
&& !
defined(OS_CYGWIN)
void
Start
()
{
void
Start
()
{
handle_
=
CreateThread
(
NULL
,
handle_
=
CreateThread
(
NULL
,
0
,
0
,
...
@@ -554,7 +554,7 @@ class Thread {
...
@@ -554,7 +554,7 @@ class Thread {
return
NULL
;
return
NULL
;
}
}
#if defined(OS_WINDOWS)
||
defined(OS_CYGWIN)
#if defined(OS_WINDOWS)
&& !
defined(OS_CYGWIN)
HANDLE
handle_
;
HANDLE
handle_
;
DWORD
th_
;
DWORD
th_
;
#else
#else
...
...
src/utilities.cc
View file @
a808e435
...
@@ -268,7 +268,7 @@ pid_t GetTID() {
...
@@ -268,7 +268,7 @@ pid_t GetTID() {
// If gettid() could not be used, we use one of the following.
// If gettid() could not be used, we use one of the following.
#if defined OS_LINUX
#if defined OS_LINUX
return
getpid
();
// Linux: getpid returns thread ID when gettid is absent
return
getpid
();
// Linux: getpid returns thread ID when gettid is absent
#elif defined OS_WINDOWS
||
defined OS_CYGWIN
#elif defined OS_WINDOWS
&& !
defined OS_CYGWIN
return
GetCurrentThreadId
();
return
GetCurrentThreadId
();
#else
#else
// If none of the techniques above worked, we use pthread_self().
// If none of the techniques above worked, we use pthread_self().
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment