Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
5fe62e13
Commit
5fe62e13
authored
Nov 12, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __thread rather than thread_local.
parent
5a917171
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
async.c++
c++/src/kj/async.c++
+1
-5
exception.c++
c++/src/kj/exception.c++
+1
-5
No files found.
c++/src/kj/async.c++
View file @
5fe62e13
...
...
@@ -37,11 +37,7 @@ namespace kj {
namespace
{
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
#define thread_local __thread
#endif
thread_local
EventLoop
*
threadLocalEventLoop
=
nullptr
;
static
__thread
EventLoop
*
threadLocalEventLoop
=
nullptr
;
#define _kJ_ALREADY_READY reinterpret_cast< ::kj::EventLoop::Event*>(1)
...
...
c++/src/kj/exception.c++
View file @
5fe62e13
...
...
@@ -247,11 +247,7 @@ const char* ExceptionImpl::what() const noexcept {
namespace
{
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
#define thread_local __thread
#endif
thread_local
ExceptionCallback
*
threadLocalCallback
=
nullptr
;
static
__thread
ExceptionCallback
*
threadLocalCallback
=
nullptr
;
}
// namespace
...
...
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