40 if (client ==
nullptr) {
41 client = PStatClient::get_global_pstats();
45 if (thread_index != -1) {
51 (*this) = client->make_thread(thread);
64 _client(copy._client),
72 INLINE
void PStatThread::
74 _client = copy._client;
81 INLINE
int PStatThread::
PStatThread()
Normally, this constructor is called only from PStatClient.
A lightweight class that represents a single thread of execution to PStats.
A thread; that is, a lightweight process.
get_pstats_index
Returns the PStats index associated with this thread, or -1 if no index has yet been associated with ...
Manages the communications to report statistics via a network connection to a remote PStatServer.