Skip to content

Commit

Permalink
xtd::threading::thread implementation (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Aug 5, 2023
1 parent 63d5689 commit 8379156
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/xtd.core/include/xtd/threading/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ namespace xtd {

/// @{
thread();

explicit thread(xtd::threading::thread_start start);

thread(xtd::threading::thread_start start, int32 max_stack_size);

explicit thread(xtd::threading::parameterized_thread_start start);

thread(xtd::threading::parameterized_thread_start start, int32 max_stack_size);
/// @}

/// @cond
Expand Down
16 changes: 16 additions & 0 deletions src/xtd.core/src/xtd/threading/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ thread::thread_collection thread::threads_ {thread {}, thread {}};
thread::thread() : data_(std::make_shared<data>()) {
}

thread::thread(xtd::threading::thread_start start) {

}

thread::thread(xtd::threading::thread_start start, int32 max_stack_size) {

}

thread::thread(xtd::threading::parameterized_thread_start start) {

}

thread::thread(xtd::threading::parameterized_thread_start start, int32 max_stack_size) {

}

thread& thread::current_thread() {
std::lock_guard<std::recursive_mutex> lock(mutex_);
std::thread::id id = std::this_thread::get_id();
Expand Down

0 comments on commit 8379156

Please sign in to comment.