Solved Threading?

  • CSGO recently moved logic from 'client_panorama.dll' to 'client.dll', you must update all code that uses 'client_panorama.dll' and replace it with 'client.dll' or the code will not work.
Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

gummy8unny

Newbie
Full Member
Oct 14, 2015
11
238
0
his is basically my threading however this doesn't work am I forgetting something?


C++:
int main()
{
        std::thread t1(radar);
	std::thread t2(bhop);
	std::thread t3(trigger);

	t1.join();
	t2.join();
	t3.join();
 

Lukor

ded
Meme Tier VIP
Fleep Tier Donator
Dec 13, 2013
490
5,353
25
Make sure you define the functions run by the threads above the main().
If you dont need to sync your threads you could also use CreateThread().

Otherwise it looks ok.
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,140
78,998
2,394
If you want them to run asynchronously you should call .detach() not .join(), I don't know if those are your intentions.
 

gummy8unny

Newbie
Full Member
Oct 14, 2015
11
238
0
i tried detach as well but it didnt work as well. ? should i have loops in my functions or do threads loop by themselfes
 

Lukor

ded
Meme Tier VIP
Fleep Tier Donator
Dec 13, 2013
490
5,353
25
Depending on your workload the threads may end before you can call .join()

Calling .join() will block your main thread untill the thread ended.
So make sure you create a case in which your thread ends!

You can attach your debugger to see whether a new thread was created or not. This would be usefull to know.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Similar threads

Community Mods