Fix: Use pthread_self to get threadid on OSX
[urcu.git] / tests / benchmark / common.sh
1 #
2 # This file is meant to be sourced from other tests scripts.
3 #
4
5 if [ -x "$URCU_TEST_TIME_BIN" ]; then
6 test_time_bin="$URCU_TEST_TIME_BIN"
7 elif [ -x "/usr/bin/time" ]; then
8 test_time_bin="/usr/bin/time"
9 else
10 test_time_bin=""
11 fi
12
13 function cleanup()
14 {
15 if [ x"$tmpfile" != x"" ]; then
16 rm -f $tmpfile
17 fi
18 }
19
20 function xseq () {
21 i=$1
22 while [[ "$i" -le "$2" ]]; do
23 echo "$i"
24 i=$(expr $i + 1)
25 done
26 }
This page took 0.036428 seconds and 4 git commands to generate.