Comments (4)
You can use TLS together with boost.context as long as you do not migrate an execution_context, that uses TLS, from one thread to another.
from context.
Thanks for the quick response! Can you elaborate what you mean by "as long as you do not migrate an execution_context, that uses TLS, from one thread to another." If you mean, storing execution_context inside TLS I do not do that.
from context.
migrating execution_context to another thread == an execution_context is suspended in thread A and resumed in thread B
from context.
I do do that but the execution_context always ends up in the same thread A, as in the code above where I call pthread_getspecific from the same thread from which I set it with pthread_setspecific.
from context.
Related Issues (20)
- Document the difference between Fiber and Call/CC HOT 1
- Build x86_64 on MacOS with apple M1 arm64. HOT 1
- how to set size of 'protected_fixedsize_stack' ? HOT 1
- Floating point registers are not preserved HOT 1
- Build failing in develop branch on Windows x64 HOT 2
- The ucontext headers always use code for macOS. HOT 2
- Delete
- Segfault with ucontext on macOS (#184, continued) HOT 3
- CMake builds fails on QNX (qcc): Incorrect assembler invocation
- Not able to build for windows ARM64 with msvc toolset HOT 6
- Is the performance of boost context slow on kernel 3.10 like Centos7 HOT 1
- Asm parts are not compiled when building boost 1.83 on riscv64 linux HOT 7
- CMAKE_SIZEOF_VOID_P is empty when trying to build HOT 1
- ontop implementation on x86-64 sysv
- implementation doesn't match what the doc said HOT 1
- ASM support for sparc64 systems HOT 1
- Failure to assemble ARM64 code with MSVC's ARMASM64 HOT 2
- 1.85.0 Beta 1 RC 1 does not build on Mac OS X with gcc HOT 4
- Modular Boost C++ Libraries Request
- unknown feature "<context-impl>" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from context.