[前][次][番号順一覧][スレッド一覧][生データ]

yarv-diff:391

From: ko1 atdot.net
Date: 7 Sep 2006 20:08:42 +0900
Subject: [yarv-diff:391] r558 - branches/parallel

Author: ko1
Date: 2006-09-07 20:08:42 +0900 (Thu, 07 Sep 2006)
New Revision: 558

Modified:
   branches/parallel/ChangeLog
   branches/parallel/configure.in
   branches/parallel/thread.c
Log:
	* configure.in : check pthread_setaffinity_np

	* thread.c : ditto



Modified: branches/parallel/ChangeLog
===================================================================
--- branches/parallel/ChangeLog	2006-09-07 11:00:41 UTC (rev 557)
+++ branches/parallel/ChangeLog	2006-09-07 11:08:42 UTC (rev 558)
@@ -4,6 +4,13 @@
 #  from Mon, 03 May 2004 01:24:19 +0900
 #
 
+2006-09-07(Thu) 20:05:33 +0900  Koichi Sasada  <ko1 atdot.net>
+
+	* configure.in : check pthread_setaffinity_np
+
+	* thread.c : ditto
+
+
 2006-09-07(Thu) 19:59:40 +0900  Koichi Sasada  <ko1 atdot.net>
 
 	* benchmark/bm_para_concat.rb : added

Modified: branches/parallel/configure.in
===================================================================
--- branches/parallel/configure.in	2006-09-07 11:00:41 UTC (rev 557)
+++ branches/parallel/configure.in	2006-09-07 11:08:42 UTC (rev 558)
@@ -784,7 +784,7 @@
 
 AC_CHECK_HEADERS(pthread.h)
 AC_CHECK_TYPES(pthread_spinlock_t)
-AC_CHECK_FUNCS(sched_setaffinity)
+AC_CHECK_FUNCS(sched_setaffinity pthread_setaffinity_np)
 
 if test x"$ac_cv_header_ucontext_h" = xyes; then
     if test x"$rb_with_pthread" = xyes; then

Modified: branches/parallel/thread.c
===================================================================
--- branches/parallel/thread.c	2006-09-07 11:00:41 UTC (rev 557)
+++ branches/parallel/thread.c	2006-09-07 11:08:42 UTC (rev 558)
@@ -1829,7 +1829,7 @@
 
 #define TS_CONFLICT 10000
 
-#if HAVE_SCHED_SETAFFINITY
+#if HAVE_PTHREAD_SETAFFINITY_NP
 
 static void
 set_cpu_cnt(yarv_thread_t *th, int num)
@@ -1915,7 +1915,7 @@
 
 
 #if 1
-#if HAVE_SCHED_SETAFFINITY
+#if HAVE_PTHREAD_SETAFFINITY_NP
     {
 	static int prev_confilict;
 	static int cnt = 100;


--
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]