diff options
author | Nicholas Corgan | 2013-02-06 12:36:13 -0800 |
---|---|---|
committer | Nicholas Corgan | 2013-02-06 12:36:13 -0800 |
commit | 0c46b36ed5c52f0003f0cd45195bdee1193a2a33 (patch) | |
tree | b8481929a8f56a3534c6da68b9c3c2b470c46dbe /gruel/src/lib/thread.cc | |
parent | 8511ee7f22f197526e0345554842a9ac422974ae (diff) | |
download | gnuradio-0c46b36ed5c52f0003f0cd45195bdee1193a2a33.tar.gz gnuradio-0c46b36ed5c52f0003f0cd45195bdee1193a2a33.tar.bz2 gnuradio-0c46b36ed5c52f0003f0cd45195bdee1193a2a33.zip |
gruel: renamed mask to dword_mask
Diffstat (limited to 'gruel/src/lib/thread.cc')
-rw-r--r-- | gruel/src/lib/thread.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gruel/src/lib/thread.cc b/gruel/src/lib/thread.cc index ab022c0bd..8ebe822fb 100644 --- a/gruel/src/lib/thread.cc +++ b/gruel/src/lib/thread.cc @@ -61,14 +61,14 @@ namespace gruel { thread_bind_to_processor(gr_thread_t thread, const std::vector<unsigned int> &mask) { //DWORD_PTR mask = (1 << n); - DWORD_PTR mask = 0; + DWORD_PTR dword_mask = 0; std::vector<unsigned int> _mask = mask; std::vector<unsigned int>::iterator itr; for(itr = _mask.begin(); itr != _mask.end(); itr++) - mask |= (1 << (*itr)); + dword_mask |= (1 << (*itr)); - DWORD_PTR ret = SetThreadAffinityMask(thread, mask); + DWORD_PTR ret = SetThreadAffinityMask(thread, dword_mask); if(ret == 0) { std::stringstream s; s << "thread_bind_to_processor failed with error: " << GetLastError() << std::endl; @@ -79,14 +79,14 @@ namespace gruel { void thread_unbind() { - thread_bind_unbind(get_current_thread_id()); + thread_unbind(get_current_thread_id()); } void thread_unbind(gr_thread_t thread) { - DWORD_PTR mask = sizeof(DWORD_PTR) - 1; - DWORD_PTR ret = SetThreadAffinityMask(thread, mask); + DWORD_PTR dword_mask = sizeof(DWORD_PTR) - 1; + DWORD_PTR ret = SetThreadAffinityMask(thread, dword_mask); if(ret == 0) { std::stringstream s; s << "thread_unbind failed with error: " << GetLastError() << std::endl; |