OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
tbb
/
machine
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:50:34 AM
rwxr-xr-x
📄
gcc_armv7.h
6.59 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
gcc_generic.h
7.65 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
gcc_ia32_common.h
3.75 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
gcc_itsx.h
3.95 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
ibm_aix51.h
2.71 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
icc_generic.h
10.13 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
linux_common.h
2.15 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
linux_ia32.h
9.54 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
linux_ia64.h
9.37 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
linux_intel64.h
4.9 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
mac_ppc.h
16.8 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
macos_common.h
4.55 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
mic_common.h
1.86 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
msvc_armv7.h
5.89 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
msvc_ia32_common.h
10.31 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
sunos_sparc.h
8.48 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
windows_api.h
2.54 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
windows_ia32.h
3.42 KB
06/07/2017 07:54:02 AM
rw-r--r--
📄
windows_intel64.h
3.06 KB
06/07/2017 07:54:02 AM
rw-r--r--
Editing: linux_common.h
Close
/* Copyright (c) 2005-2017 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef __TBB_machine_H #error Do not #include this internal file directly; use public TBB headers instead. #endif #include <sched.h> #define __TBB_Yield() sched_yield() #include <unistd.h> /* Futex definitions */ #include <sys/syscall.h> #if defined(SYS_futex) #define __TBB_USE_FUTEX 1 #include <limits.h> #include <errno.h> // Unfortunately, some versions of Linux do not have a header that defines FUTEX_WAIT and FUTEX_WAKE. #ifdef FUTEX_WAIT #define __TBB_FUTEX_WAIT FUTEX_WAIT #else #define __TBB_FUTEX_WAIT 0 #endif #ifdef FUTEX_WAKE #define __TBB_FUTEX_WAKE FUTEX_WAKE #else #define __TBB_FUTEX_WAKE 1 #endif #ifndef __TBB_ASSERT #error machine specific headers must be included after tbb_stddef.h #endif namespace tbb { namespace internal { inline int futex_wait( void *futex, int comparand ) { int r = syscall( SYS_futex,futex,__TBB_FUTEX_WAIT,comparand,NULL,NULL,0 ); #if TBB_USE_ASSERT int e = errno; __TBB_ASSERT( r==0||r==EWOULDBLOCK||(r==-1&&(e==EAGAIN||e==EINTR)), "futex_wait failed." ); #endif /* TBB_USE_ASSERT */ return r; } inline int futex_wakeup_one( void *futex ) { int r = ::syscall( SYS_futex,futex,__TBB_FUTEX_WAKE,1,NULL,NULL,0 ); __TBB_ASSERT( r==0||r==1, "futex_wakeup_one: more than one thread woken up?" ); return r; } inline int futex_wakeup_all( void *futex ) { int r = ::syscall( SYS_futex,futex,__TBB_FUTEX_WAKE,INT_MAX,NULL,NULL,0 ); __TBB_ASSERT( r>=0, "futex_wakeup_all: error in waking up threads" ); return r; } } /* namespace internal */ } /* namespace tbb */ #endif /* SYS_futex */