看板 DFBSD_commit 關於我們 聯絡資訊
:Actually, I don't like the export of __isthreaded as part of libc ABI :at all. The locked functions should be normal calls, the compiler can :inline in the libc if it feels so. This might actually be faster too. : :Joerg What, you mean THREAD_LOCK() and friends? Those should probably be consolidated. I don't see that we have a choice re: __isthreaded. The variable could be renamed I suppose but there needs to be some sort of variable that is part of the libc ABI that libc can check. The variable can't be exported by the threads library because there might not be a threads library linked in. -Matt Matthew Dillon <dillon@backplane.com>