• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1.. _module-pw_thread_stl:
2
3=============
4pw_thread_stl
5=============
6.. pigweed-module::
7   :name: pw_thread_stl
8
9This is a set of backends for pw_thread based on the C++ STL.
10
11-------------------
12Compatibility notes
13-------------------
14Windows
15=======
16* `b/317922402 <https://issues.pigweed.dev/317922402>`_\:
17  ``pw::Thread::detach()`` can cause indefinite hangs on Windows targets. For
18  now, this functionality has been disabled. Attempting to detach a thread on
19  Windows will cause the following link-time error to be emitted:
20
21  .. code-block::
22
23     ld.exe: pw_strict_host_gcc_debug/obj/pw_thread/test_thread_context_facade_test.lib.test_thread_context_facade_test.cc.o: in function `pw::Thread::detach()':
24     pw_thread_stl/public/pw_thread_stl/thread_inline.h:55: undefined reference to `pw::thread::internal::ErrorAttemptedToInvokeStdThreadDetachOnMinGW()'
25