Added support for f_yieldCPU() on Unix platforms.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@638 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -837,7 +837,7 @@ ifdef unix_target
|
||||
compiler = CC
|
||||
exe_linker = CC
|
||||
shared_linker = ld
|
||||
compiler_version := $(shell $(compiler) -V)
|
||||
compiler_version := $(shell $(compiler) -V 2>&1)
|
||||
ifneq (,$(findstring Sun C++,$(compiler_version)))
|
||||
sun_studio_compiler = yes
|
||||
endif
|
||||
|
||||
@@ -145,6 +145,7 @@
|
||||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
#include <aio.h>
|
||||
#include <sched.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
@@ -1735,6 +1735,7 @@ Desc:
|
||||
****************************************************************************/
|
||||
void FLMAPI f_yieldCPU( void)
|
||||
{
|
||||
sched_yield();
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user