Allow linking against system libraries for almost everything (#1790)

This commit is contained in:
Tatsh
2019-02-16 08:32:52 -08:00
committed by Colby Klein
parent 021d494157
commit b8a79cd0f6
78 changed files with 4870 additions and 4776 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
#include "global.h"
#include "Threads_Pthreads.h"
#include "RageLog.h"
#include "RageTimer.h"
#include "RageThreads.h"
#include "RageUtil.h"
#include <sys/time.h>
#include <errno.h>
@@ -17,6 +19,7 @@
void ThreadImpl_Pthreads::Halt( bool Kill )
{
(void)Kill;
/* Linux:
* Send a SIGSTOP to the thread. If we send a SIGKILL, pthreads will
* "helpfully" propagate it to the other threads, and we'll get killed, too.
@@ -105,7 +108,7 @@ ThreadImpl *MakeThread( int (*pFunc)(void *pData), void *pData, uint64_t *piThre
} else {
// Abbreviate the name by taking the first 6, last 7
// characters and adding '..' in the middle.
LOG->Trace( "Truncated thread name due to size limit of %d: %s",
LOG->Trace( "Truncated thread name due to size limit of %zu: %s",
maxNameLen, rawname );
snprintf( thread->name, maxNameLen, "%.6s..%s",
rawname, &rawname[strlen(rawname) - 7] );