Skip to content

Commit

Permalink
[jthread] Initial port (microsoft#12497)
Browse files Browse the repository at this point in the history
* [jthread] Initial port

https://github.com/josuttis/jthread

* [jthread] Add header only comment

Co-authored-by: NancyLi1013 <[email protected]>

* [jthread] Fix version date

Co-authored-by: NancyLi1013 <[email protected]>

* [jthread] Move headers to include directory

Co-authored-by: NancyLi1013 <[email protected]>

* [jthread] Rename the port josuttis-jthread

* [jthread] Fix control port name

Co-authored-by: NancyLi1013 <[email protected]>
Co-authored-by: Rémy Tassoux <[email protected]>
  • Loading branch information
3 people authored Aug 5, 2020
1 parent 98fb277 commit 3d9934a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/josuttis-jthread/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: josuttis-jthread
Version: 2020-07-21
Homepage: https://github.com/josuttis/jthread
Description: C++ class for a joining and cooperative interruptible thread (std::jthread) with stop_token helper
15 changes: 15 additions & 0 deletions ports/josuttis-jthread/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# header-only library

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO josuttis/jthread
REF 3e1908f3bbaba6d2195bb423840c23e107c9e8b2
SHA512 b6e4df35b364848a433eb31023a8b5b5045b2445aaf9a81406a6b3ce7cfdda08bcdb486be9201f5b1e54df38884c1763fae336fdcb9ad79f11658a92c535055d
HEAD_REF master
)

file(INSTALL ${SOURCE_PATH}/source/jthread.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/source/stop_token.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(INSTALL ${SOURCE_PATH}/source/condition_variable_any2.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include})

file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

0 comments on commit 3d9934a

Please sign in to comment.