[PATCH] D51103: [Support] Add a way to run a function on a detached thread

Dmitry via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 12:44:24 PDT 2018


Dmitry.Kozhevnikov updated this revision to Diff 162727.
Dmitry.Kozhevnikov added a comment.

Address review comments:

- use error code returned from pthread functions to report errors
- use naked new instead of unique_ptr (it's always released anyway)
- tune comments
- add matching function stubs when threading implementation is unavailable or unknown


https://reviews.llvm.org/D51103

Files:
  include/llvm/Support/Threading.h
  lib/Support/Threading.cpp
  lib/Support/Unix/Threading.inc
  lib/Support/Unix/Unix.h
  lib/Support/Windows/Process.inc
  lib/Support/Windows/Threading.inc
  lib/Support/Windows/WindowsSupport.h
  unittests/Support/Threading.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51103.162727.patch
Type: text/x-patch
Size: 13798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180827/a224b331/attachment.bin>


More information about the llvm-commits mailing list