Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename threads to better aid with debugging #424

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Rename threads to better aid with debugging #424

wants to merge 3 commits into from

Conversation

IngCr3at1on
Copy link
Contributor

No description provided.




void RenameThread(const char* name);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everyone loves fixing excess whitespace.

@jwrb
Copy link

jwrb commented Dec 15, 2015

Tested and working as expected! LGTM! 👍

@MitchellCash
Copy link
Contributor

You seem to be missing a few? ThreadTopUpKeyPool, ThreadCleanWalletPassphrase etc.

@IngCr3at1on
Copy link
Contributor Author

@MitchellCash so I did lol, also the names were a bit inconsistent I thought I went through them already. Fixed both. (15 minutes)

@MitchellCash
Copy link
Contributor

More:

void ThreadRPCServer(void* parg)
void ipcThread(void* parg)

@@ -421,6 +421,9 @@ bool GetMyExternalIP(CNetAddr& ipRet)

void ThreadGetMyExternalIP(void* parg)
{
// Make this thread recognisable as the message handling thread
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thread is not the message handling thread.
// Make this thread recognisable as the external IP detection thread

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, and the other missing ones (10 minutes)

or not, been playing with Golang and forgot some semi-colons. Travis is going to crash lol.

@MitchellCash
Copy link
Contributor

If you squash those commits down it looks good to me now.

Confirmed with top -H.

@MitchellCash
Copy link
Contributor

#434 introduces a new thread. Following testing of it should we rebase this pull over the top to include the new ThreadRPCServer3 thread?

@IngCr3at1on
Copy link
Contributor Author

@MitchellCash probably yes.

@IngCr3at1on
Copy link
Contributor Author

rebased over master to accommodate 20bc095 (5 minutes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants