Module: xenomai-forge
Branch: next
Commit: 9e1b194df453fa7a8f16ee3eded37fc16c056e80
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9e1b194df453fa7a8f16ee3eded37fc16c056e80

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun May 26 10:42:04 2013 +0200

copperplate/internal: use system-default thread scope

---

 include/copperplate/reference.h |    2 --
 lib/copperplate/internal.c      |    2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/copperplate/reference.h b/include/copperplate/reference.h
index 055f8f0..4792cf8 100644
--- a/include/copperplate/reference.h
+++ b/include/copperplate/reference.h
@@ -108,7 +108,6 @@ int __fnref_register(const char *libname,
 
 #define mutex_scope_attribute  PTHREAD_PROCESS_SHARED
 #define sem_scope_attribute    1
-#define thread_scope_attribute PTHREAD_SCOPE_SYSTEM
 #define monitor_scope_attribute        COBALT_MONITOR_SHARED
 #define event_scope_attribute  COBALT_EVENT_SHARED
 
@@ -130,7 +129,6 @@ int __fnref_register(const char *libname,
 
 #define mutex_scope_attribute  PTHREAD_PROCESS_PRIVATE
 #define sem_scope_attribute    0
-#define thread_scope_attribute PTHREAD_SCOPE_PROCESS
 #define monitor_scope_attribute        0
 #define event_scope_attribute  0
 
diff --git a/lib/copperplate/internal.c b/lib/copperplate/internal.c
index 0661973..2c40da1 100644
--- a/lib/copperplate/internal.c
+++ b/lib/copperplate/internal.c
@@ -89,7 +89,6 @@ int copperplate_create_thread(int prio,
        pthread_attr_setschedpolicy_ex(&attr_ex, policy);
        pthread_attr_setschedparam_ex(&attr_ex, &param_ex);
        pthread_attr_setstacksize_ex(&attr_ex, stacksize);
-       pthread_attr_setscope_ex(&attr_ex, thread_scope_attribute);
        pthread_attr_setdetachstate_ex(&attr_ex, detachstate);
        ret = __bt(-pthread_create_ex(tid, &attr_ex, start, arg));
        pthread_attr_destroy_ex(&attr_ex);
@@ -135,7 +134,6 @@ int copperplate_create_thread(int prio,
        pthread_attr_setschedpolicy(&attr, policy);
        pthread_attr_setschedparam(&attr, &param);
        pthread_attr_setstacksize(&attr, stacksize);
-       pthread_attr_setscope(&attr, thread_scope_attribute);
        pthread_attr_setdetachstate(&attr, detachstate);
        ret = __bt(-pthread_create(tid, &attr, start, arg));
        pthread_attr_destroy(&attr);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to