Sign in to follow this  
Kavin

Need Help with Threading System

Recommended Posts

I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

 

The threads literally stop, I have no clue why.

 

Code: https://coding.is-rocket.science/sebozuyula

 

If anyone could give me some advice, that's greatly appreciated!  :hype:

Share this post


Link to post
Share on other sites

I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

 

The threads literally stop, I have no clue why.

 

Code: https://coding.is-rocket.science/sebozuyula

 

If anyone could give me some advice, that's greatly appreciated!  :hype:

 

 

 

This looks like c#. If it is, use Tasks.

 

Also, you need to double lock this because combos is a list/array which means its a collection of memory pointers. You likely have a deadlock scenario.

Share this post


Link to post
Share on other sites

I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

 

The threads literally stop, I have no clue why.

 

Code: https://coding.is-rocket.science/sebozuyula

 

If anyone could give me some advice, that's greatly appreciated!  :hype:

 

 

 

This looks like c#. If it is, use Tasks.

 

Also, you need to double lock this because combos is a list/array which means its a collection of memory pointers. You likely have a deadlock scenario.

 

Thanks for the advice! I managed to fix it with the help of the Parallel.Invoke api. This actually made the checker faster too! Thanks for the help  :comfy:

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this