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

Thread name #1

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

Thread name #1

wants to merge 8 commits into from

Conversation

Zelnes
Copy link
Owner

@Zelnes Zelnes commented Apr 24, 2017

New features are available. Functions names are correct and it does not produce errors nor warnings (compiled with gcc and mingw (on ubuntu))
EDIT : Does not work as fine as I thought. Trying to fix some issues in the day

Zelnes and others added 8 commits April 1, 2017 12:20
…g header, to use a string instead of the thread id. Though, thread id will be use as default value until you reach the directive to add a name to a thread id. You can after change the value, or delete the id-string association
…EAD_NAME, mlog::Options::bindThreadName and mlog::Options::unbindThreadName
The functions or now always visible, and they don't need the thread id any more.
If MTL_LOG_WITH_THREADS is defined, then the function will have a job to do, otherwise it returns immediately.
…an be changed when we find a way to use thread with mingw.Addition of MTL_THREAD_ID that is thread id type when MTL_LOG_WITH_THREADS is defined, otherwise it's int type. This macro avoid errors. The display function contains the THREAD parameter only if MTL_LOG_WITH_THREADS is defined. Modification of bindThreadName, now there are two functions. The first one binds the given name to the current thread id, while the other one binds a specific thread id to the given name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant