aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-08-11 16:16:22 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-08-11 16:16:22 +0100
commit18095be17013444d9e91aa8c73ebe5cf58ccb3f1 (patch)
tree23aaf47967b46aaa80934817d6f24c2572f867e1 /gcc/go
parent2a6918e4fa57edbe0dc326d5f142350b1dd4afd7 (diff)
downloadgcc-18095be17013444d9e91aa8c73ebe5cf58ccb3f1.zip
gcc-18095be17013444d9e91aa8c73ebe5cf58ccb3f1.tar.gz
gcc-18095be17013444d9e91aa8c73ebe5cf58ccb3f1.tar.bz2
libstdc++: Make Networking TS work without gthreads [PR 89760]
Make the experimental Networking TS code work without std::mutex and std::condition_variable. libstdc++-v3/ChangeLog: PR libstdc++/89760 * include/experimental/executor [!_GLIBCXX_HAS_GTHREADS]: (execution_context::mutex_type): Define dummy mutex type. (system_context): Use execution_context::mutex_type. (system_context) [!_GLIBCXX_HAS_GTHREADS]: Define dummy thread and condition variable types. [!_GLIBCXX_HAS_GTHREADS] (system_context::_M_run()): Do not define. (system_context::_M_post) [!_GLIBCXX_HAS_GTHREADS]: Throw an exception when threads aren't available. (strand::running_in_this_thread()): Defer to _M_state. (strand::_State::running_in_this_thread()): New function. (use_future_t): Do not depend on _GLIBCXX_USE_C99_STDINT_TR1. * include/experimental/io_context (io_context): Use the execution_context::mutex_type alias. Replace stack of thread IDs with counter. * testsuite/experimental/net/execution_context/use_service.cc: Enable test for non-pthread targets.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions