[utils/threads] Export small ID functions as part of the API.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 20 Jun 2017 00:49:26 +0000 (02:49 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 20 Jun 2017 03:39:12 +0000 (05:39 +0200)
commitbdfa3ef2cafa954f76a405ce3dc9d6ce39f46d42
tree14237bd88b18ef1eb8709dfe00f302a00045dd57
parent9aaa0083d0def5b940372dbd9375336b036249fd
[utils/threads] Export small ID functions as part of the API.

These will be used in the log profiler.

Also, make mono_thread_info_register_small_id () only allocate a new small ID
if one isn't already allocated for the current thread. This is necessary so
that we can allocate a small ID for a thread and not have it be overwritten
if/when that thread is later attached probably (which also results in this
function being called).
mono/utils/mono-threads.c
mono/utils/mono-threads.h