set thread name / rename example

This commit is contained in:
Benjamin Sergeant
2018-12-23 14:14:38 -08:00
parent bd04b28b9e
commit a79f4c10a1
24 changed files with 103 additions and 97 deletions

View File

@ -5,6 +5,7 @@
*/
#include "IXWebSocket.h"
#include "IXSetThreadName.h"
#include <iostream>
#include <cmath>
@ -25,8 +26,8 @@ namespace
}
}
namespace ix {
namespace ix
{
OnTrafficTrackerCallback WebSocket::_onTrafficTrackerCallback = nullptr;
WebSocket::WebSocket() :
@ -171,6 +172,8 @@ namespace ix {
void WebSocket::run()
{
setThreadName(_url);
while (true)
{
if (_stop) return;