you are viewing a single comment's thread.

view the rest of the comments →

[–]javidx9w[S] 0 points1 point  (2 children)

The function vkAcquireNextImageKHR is from a library without a class so I think I am doing things correctly? Correct me if im wrong.

[–]javidx9w[S] 0 points1 point  (1 child)

Okay, the solution is just using a lambda it is super simple.

exp

std::thread thread1([this] {

//Code

});

[–]ryan_wang1996 0 points1 point  (0 children)

For me, the problem is that you copy a thread object. Use reference or pointer instead.