Skip to content

Commit f40ed62

Browse files
committed
Fix linux build
1 parent a12f5c4 commit f40ed62

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Port/WorkerThreadStd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern "C" BOOL DispatchCallbackThread2(const CB_CallbackMsg* cbMsg)
5555
//----------------------------------------------------------------------------
5656
// WorkerThread
5757
//----------------------------------------------------------------------------
58-
WorkerThread::WorkerThread(const CHAR* threadName) : m_thread(0), m_timerExit(false), THREAD_NAME(threadName)
58+
WorkerThread::WorkerThread(const std::string& threadName) : m_thread(0), m_timerExit(false), THREAD_NAME(threadName)
5959
{
6060
}
6161

Port/WorkerThreadStd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <mutex>
1212
#include <atomic>
1313
#include <condition_variable>
14+
#include <string>
1415

1516
// C language interface to callback dispatch functions
1617
extern "C" void CreateThreads(void);
@@ -24,7 +25,7 @@ class WorkerThread
2425
{
2526
public:
2627
/// Constructor
27-
WorkerThread(const CHAR* threadName);
28+
WorkerThread(const std::string& threadName);
2829

2930
/// Destructor
3031
~WorkerThread();

0 commit comments

Comments
 (0)