Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- C++
- c++ multi chatting room
- std::vector
- vector capacity
- operator overloading
- 더 지니어스 양면포커
- return by reference
- base from member
- increment operator
- discord bot
- std::cout
- std::endl
- member function pointer
- suffix return type
- constructor
- this call
- diamond inheritance
- virtual inheritance
- vector size
- c++ basic practice
- std::ostream
- pointer to member data
- conversion constructor
- virtual destructor
- dynamic_cast
- virtual function
- new&delete
- placement new
- delete function
- virtual function table
Archives
- Today
- Total
목록C++/Concurrent (1)
I'm FanJae.

1. std::this_thread namespace- 스레드 관련 4개의 함수를 제공하는 namespace- 헤더std::this_thread::get_id()현재 스레드의 ID 반환std::this_thread::sleep_for()주어진 시간 만큼 현재 스레드 재우기std::this_thread::sleep_until()주어진 시간 까지 현재 스레드 재우기std::this_thread::yield()다른 스레드를 실행할 수 있도록 힌트 제공 1-1. std::this_thread::get_id()- 실행중인 현재 스레드의 ID를 반환한다.std::thread_id get_id() noexcept;#include #include int main(){ std::cout h; st..
C++/Concurrent
2024. 9. 24. 22:38