Commit 87bd0274 by Eric Botcazou Committed by Eric Botcazou

pthread1.cc: Do not invoke pthread_setconcurrency on Solaris 2.6 and below.

	* testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
	on Solaris 2.6 and below.
	* testsuite/thread/pthread2.cc: Likewise.
	* testsuite/thread/pthread3.cc: Likewise.
	* testsuite/thread/pthread4.cc: Likewise.
	* testsuite/thread/pthread5.cc: Likewise.
	* testsuite/thread/pthread6.cc: Likewise.
	* testsuite/thread/pthread7-rope.cc: Likewise.

From-SVN: r95220
parent 180ecd6a
2005-02-18 Eric Botcazou <ebotcazou@libertysurf.fr>
* testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
on Solaris 2.6 and below.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.
* testsuite/thread/pthread7-rope.cc: Likewise.
2005-02-17 Matt Austern <austern@apple.com> 2005-02-17 Matt Austern <austern@apple.com>
* include/tr1/functional (hash): New function object. * include/tr1/functional (hash): New function object.
......
...@@ -111,7 +111,7 @@ main () ...@@ -111,7 +111,7 @@ main ()
task_queue* tq[thread_pairs]; task_queue* tq[thread_pairs];
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (thread_pairs * 2); pthread_setconcurrency (thread_pairs * 2);
#endif #endif
......
...@@ -48,7 +48,7 @@ main() ...@@ -48,7 +48,7 @@ main()
{ {
pthread_t tid[max_thread_count]; pthread_t tid[max_thread_count];
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (max_thread_count); pthread_setconcurrency (max_thread_count);
#endif #endif
......
...@@ -45,7 +45,7 @@ main() ...@@ -45,7 +45,7 @@ main()
{ {
pthread_t tid[max_thread_count]; pthread_t tid[max_thread_count];
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (max_thread_count); pthread_setconcurrency (max_thread_count);
#endif #endif
......
...@@ -98,7 +98,7 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<std::string> >; ...@@ -98,7 +98,7 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<std::string> >;
int int
main (void) main (void)
{ {
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (2); pthread_setconcurrency (2);
#endif #endif
......
...@@ -100,7 +100,7 @@ main () ...@@ -100,7 +100,7 @@ main ()
int ids[NTHREADS]; int ids[NTHREADS];
void* status; void* status;
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (NTHREADS); pthread_setconcurrency (NTHREADS);
#endif #endif
......
...@@ -80,7 +80,7 @@ main (void) ...@@ -80,7 +80,7 @@ main (void)
{ {
pthread_t tid[max_thread_count]; pthread_t tid[max_thread_count];
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (max_thread_count); pthread_setconcurrency (max_thread_count);
#endif #endif
......
...@@ -68,7 +68,7 @@ main() ...@@ -68,7 +68,7 @@ main()
pthread_t tid[max_thread_count]; pthread_t tid[max_thread_count];
#if defined(__sun) && defined(__svr4__) #if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
pthread_setconcurrency (max_thread_count); pthread_setconcurrency (max_thread_count);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment