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

Many calls to gettid from the logMsg library #2716

Closed
kzangeli opened this issue Nov 25, 2016 · 1 comment
Closed

Many calls to gettid from the logMsg library #2716

kzangeli opened this issue Nov 25, 2016 · 1 comment
Assignees
Milestone

Comments

@kzangeli
Copy link
Member

I just found out that a call to gettid() has mistakedly been put inside a loop, causing many many calls (108 in the case of the broker) to gettid() which is a system call, for each log message.
This must be removed, as to only call gettid(), when needed.

Actually, it should be called only once and then saved as a thread variable.

@fgalan
Copy link
Member

fgalan commented Nov 28, 2016

Fixed in PR #2734

@fgalan fgalan closed this as completed Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants