server: Split get_thread_from_pid to allow lookups by tid or pid only.
3 files changed