Make SetThreadPrecedence return a std::string
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
bool SuspendThread( uint64_t threadHandle )
|
||||
{
|
||||
@@ -59,7 +60,7 @@ bool GetThreadBacktraceContext( uint64_t iID, BacktraceContext *ctx )
|
||||
#endif
|
||||
}
|
||||
|
||||
const char* SetThreadPrecedence( float prec )
|
||||
std::string SetThreadPrecedence( float prec )
|
||||
{
|
||||
// Real values are between 0 and 63.
|
||||
DEBUG_ASSERT( 0.0f <= prec && prec <= 1.0f );
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define DARWIN_THREAD_HELPERS_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
/**
|
||||
* @brief Attempt to suspend the specified thread.
|
||||
@@ -23,7 +24,7 @@ uint64_t GetCurrentThreadId();
|
||||
* Valid values for the thread are from 0.0f to 1.0f.
|
||||
* 0.5f is the default.
|
||||
* @param prec the precedence to set. */
|
||||
const char* SetThreadPrecedence( float prec );
|
||||
std::string SetThreadPrecedence( float prec );
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user