From 875260f60abc984b7eb4ed5054f1020d8cc6f6ec Mon Sep 17 00:00:00 2001 From: olsner Date: Sun, 6 Jul 2008 19:52:55 +0000 Subject: [PATCH] Minor fixes for OSX: stub for debug_set_thread_name, changed name for os_cpu_CallByEachCPU and changed header path for os-sysdeps This was SVN commit r6207. --- source/lib/sysdep/os/osx/ocpu.cpp | 5 +++-- source/lib/sysdep/os/osx/odbg.cpp | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/source/lib/sysdep/os/osx/ocpu.cpp b/source/lib/sysdep/os/osx/ocpu.cpp index d37c204a84..4f014c28a0 100644 --- a/source/lib/sysdep/os/osx/ocpu.cpp +++ b/source/lib/sysdep/os/osx/ocpu.cpp @@ -1,6 +1,7 @@ #include "precompiled.h" -#include "../cpu.h" +#include "lib/sysdep/os_cpu.h" +#include "lib/bits.h" #include @@ -96,7 +97,7 @@ uintptr_t os_cpu_SetThreadAffinityMask(uintptr_t processorMask) } -LibError cpu_CallByEachCPU(OsCpuCallback cb, uintptr_t cbData) +LibError os_cpu_CallByEachCPU(OsCpuCallback cb, uintptr_t cbData) { for(size_t processor = 0; processor < os_cpu_NumProcessors(); processor++) { diff --git a/source/lib/sysdep/os/osx/odbg.cpp b/source/lib/sysdep/os/osx/odbg.cpp index ad5edb5a8a..57e1308914 100644 --- a/source/lib/sysdep/os/osx/odbg.cpp +++ b/source/lib/sysdep/os/osx/odbg.cpp @@ -21,4 +21,7 @@ LibError debug_resolve_symbol(void* UNUSED(ptr_of_interest), char* UNUSED(sym_na return ERR::NOT_IMPLEMENTED; } - +void debug_set_thread_name(char const* UNUSED(name)) +{ + // Currently unimplemented +}