ThreadName.h

// ThreadName.h
//
// Author David Barrett-Lennard
// (C)opyright Cedanet Pty Ltd

#pragma once
#ifndef Ceda_cxMessage_ThreadName_H
#define Ceda_cxMessage_ThreadName_H

#include "cxMessage.h"
#include "Ceda/cxUtils/xstring.h"

namespace ceda
{
cxMessage_API void SetThreadName(const char* threadName);

inline void SetThreadName(const xstring& threadName)
{
    SetThreadName(threadName.c_str());    
}

} // namespace ceda

#endif