]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
lib/thread: Prune a little more
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:48 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:48 +0000 (11:23 -0700)
commit22b146ef9a291b9c4cd8a604de3e042cec886eda
tree3ebb52af5f720abd87525f1adae9c433f0adab30
parentb1c4f77f80b8ecfe3c97bd8d14b42e8543b12303
lib/thread: Prune a little more

Remove automatic VThread_SetName for unmanaged threads.

Other minor removals and tweaks:
- modify "safe" name in VThreadBase to use gettid or
  pthread_threadid_np if available
- Move lib/thread name computation to child thread to remove dependency
  on VThreadID in parent.
- Convert VThreadFreeID to VThreadFree (and avoid a lookup)
- Move VThreadBase_ForgetSelf to VThreadDestroyThread to
  make VThreadHostDestroyThread straightforward.
- The 'priority' field had become write-only after earlier cleanups
  to replace AdjustThreadPriority with SetThreadPriority. Remove it,
  and some dead comments mentioning it.
- Remove unused 'signalNestCount' atomic.
- Remove two unimplemented VThreadInt prototypes.
- Remove a vacuously-true ASSERT in VThreadHostExitThread()
open-vm-tools/lib/include/vthreadBase.h
open-vm-tools/lib/misc/vthreadBase.c