VirtualBox

vbox的更動 44020 路徑 trunk/src/VBox/Runtime/r3/posix


忽略:
時間撮記:
2012-12-3 下午05:43:17 (12 年 以前)
作者:
vboxsync
訊息:

IPRT/thread-posix.cpp: avoid the pthread_setname_np dlsym trickery in the static variant of the runtime, causes crashes

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp

    r43363 r44020  
    4848# include <mach/mach_host.h>
    4949#endif
    50 #if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) - later */ || defined(RT_OS_LINUX) \
     50#ifdef IN_RT_STATIC
     51/* The pthread_setname_np trickery below assumes a working dl env which is
     52 * not guaranteed in the context of a fully static executable. */
     53# undef IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP
     54#else
     55# if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) - later */ || defined(RT_OS_LINUX) \
    5156 || defined(IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP)
    52 # define IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP
    53 # include <dlfcn.h>
     57#  define IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP
     58#  include <dlfcn.h>
     59# endif
    5460#endif
    5561#if defined(RT_OS_HAIKU)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette