Etterna 0.74.4
Loading...
Searching...
No Matches
PthreadHelpers.h
1#ifndef PID_THREAD_HELPERS_H
2#define PID_THREAD_HELPERS_H
3
4#if defined(HAVE_STDINT_H)
5#include <stdint.h>
6#endif
7#include "Etterna/Globals/global.h"
8
9std::string
10ThreadsVersion();
11
12/* Get the current thread's ThreadID. */
13uint64_t
14GetCurrentThreadId();
15
16/* Return true if NPTL libraries are in use, false if linuxthreads. */
17bool
18UsingNPTL();
19
20int
21SuspendThread(uint64_t ThreadID);
22int
23ResumeThread(uint64_t ThreadID);
24
25struct BacktraceContext;
26int
27GetThreadContext(uint64_t ThreadID, BacktraceContext* ctx);
28
29#endif