diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-05-30 14:08:07 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-05-30 14:08:07 -0700 |
commit | c034036fbb0a097b2ccbbacdfdb113f8355cdbcc (patch) | |
tree | 12366caf390de89db7e7e32646b08854c8f01bc5 /gnuradio-runtime/lib/thread/thread.cc | |
parent | 11ce2621937e6fa1d5440c8f485c7a27b9d34d27 (diff) | |
parent | c5f7b07aff9320e3d13bb8d26aa4dc43093e569a (diff) |
Merge branch 'next' into 'next-qt5'
Diffstat (limited to 'gnuradio-runtime/lib/thread/thread.cc')
-rw-r--r-- | gnuradio-runtime/lib/thread/thread.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/thread/thread.cc b/gnuradio-runtime/lib/thread/thread.cc index 483dfed493..f2606c71ae 100644 --- a/gnuradio-runtime/lib/thread/thread.cc +++ b/gnuradio-runtime/lib/thread/thread.cc @@ -28,7 +28,7 @@ #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -#include <Windows.h> +#include <windows.h> namespace gr { namespace thread { @@ -111,6 +111,7 @@ namespace gr { // Not implemented on Windows return -1; } +#ifndef __MINGW32__ #pragma pack(push,8) typedef struct tagTHREADNAME_INFO { @@ -152,6 +153,13 @@ namespace gr { _set_thread_name(thread, name.c_str(), dwThreadId); } +#else + void + set_thread_name(gr_thread_t thread, std::string name) + { + /* Not implemented on mingw-w64 */ + } +#endif /* !__MINGW32__ */ } /* namespace thread */ } /* namespace gr */ |