From 7813f022e7cb2e6428f1c098f4452c8b7f8d9f4d Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sat, 2 Apr 2011 23:05:31 +0200 Subject: [PATCH] Some more code sniplets of no need to call thr_setconcurrency anymore. --- bacula/src/lib/devlock.c | 10 +++++----- bacula/src/lib/rwlock.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bacula/src/lib/devlock.c b/bacula/src/lib/devlock.c index c2e1291e5b..1bf61829f4 100644 --- a/bacula/src/lib/devlock.c +++ b/bacula/src/lib/devlock.c @@ -513,9 +513,9 @@ int main (int argc, char *argv[]) int thread_writes = 0; int data_writes = 0; -#ifdef sun +#ifdef USE_THR_SETCONCURRENCY /* - * On Solaris 2.5, threads are not timesliced. To ensure + * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure * that our threads can run concurrently, we need to * increase the concurrency level to THREADS. */ @@ -596,7 +596,7 @@ int main (int argc, char *argv[]) * * Demonstrate use of non-blocking read-write locks. * - * Special notes: On a Solaris system, call thr_setconcurrency() + * Special notes: On older Solaris system, call thr_setconcurrency() * to allow interleaved thread execution, since threads are not * timesliced. */ @@ -686,9 +686,9 @@ int main (int argc, char *argv[]) int thread_updates = 0, data_updates = 0; int status; -#ifdef sun +#ifdef USE_THR_SETCONCURRENCY /* - * On Solaris 2.5, threads are not timesliced. To ensure + * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure * that our threads can run concurrently, we need to * increase the concurrency level to THREADS. */ diff --git a/bacula/src/lib/rwlock.c b/bacula/src/lib/rwlock.c index b1ce1e2e98..1a263bca1c 100644 --- a/bacula/src/lib/rwlock.c +++ b/bacula/src/lib/rwlock.c @@ -446,9 +446,9 @@ int main (int argc, char *argv[]) int thread_writes = 0; int data_writes = 0; -#ifdef sun +#ifdef USE_THR_SETCONCURRENCY /* - * On Solaris 2.5, threads are not timesliced. To ensure + * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure * that our threads can run concurrently, we need to * increase the concurrency level to THREADS. */ @@ -529,7 +529,7 @@ int main (int argc, char *argv[]) * * Demonstrate use of non-blocking read-write locks. * - * Special notes: On a Solaris system, call thr_setconcurrency() + * Special notes: On older Solaris system, call thr_setconcurrency() * to allow interleaved thread execution, since threads are not * timesliced. */ @@ -619,9 +619,9 @@ int main (int argc, char *argv[]) int thread_updates = 0, data_updates = 0; int status; -#ifdef sun +#ifdef USE_THR_SETCONCURRENCY /* - * On Solaris 2.5, threads are not timesliced. To ensure + * On Solaris 2.5,2.6,7 and 8 threads are not timesliced. To ensure * that our threads can run concurrently, we need to * increase the concurrency level to THREADS. */ -- 2.39.5