Horje
C++ initializing a thread with a public function of a class Code Example
C++ initializing a thread with a public function of a class

class myFunc
{
public:
  void pubFunc1()
  {
    cout << "publicFunc1 of myFunc class called" << endl;
  }
};

/*****************************************************/

myFunc myFunc1;

thread thread1(&myFunc::pubFunc1,myFunc);

if (thread1.joinable())
{
	thread1.join();
}




Cpp

Related
cpp how to add collisions to boxes Code Example cpp how to add collisions to boxes Code Example
C++ singleton prevent copy Code Example C++ singleton prevent copy Code Example
servicenow cart api Code Example servicenow cart api Code Example
Codeforces Round #376 (Div. 2), problem: (A) Night at the Museum Code Example Codeforces Round #376 (Div. 2), problem: (A) Night at the Museum Code Example
divisor summation Code Example divisor summation Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9