Changeset 8d6d76a in mainline


Ignore:
Timestamp:
2006-06-08T08:30:42Z (18 years ago)
Author:
Jakub Vana <jakub.vana@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4bc141c
Parents:
616f1759
Message:

Detaching threads in tests

Location:
test
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • test/fpu/fpu1/test.c

    r616f1759 r8d6d76a  
    8181        double e,d,le,f;
    8282
     83        thread_detach(THREAD);
     84
    8385        waitq_sleep(&can_start);
    8486
     
    109111#endif
    110112
     113
    111114        int i;
    112115        double lpi, pi;
    113116        double n, ab, ad;
     117       
     118        thread_detach(THREAD);
    114119
    115120        waitq_sleep(&can_start);
  • test/fpu/mips1/test.c

    r616f1759 r8d6d76a  
    5050        int arg __attribute__((aligned(16))) = (int)((__native) data);
    5151        int after_arg __attribute__((aligned(16)));
     52
     53        thread_detach(THREAD);
    5254       
    5355        waitq_sleep(&can_start);
     
    7880        int arg __attribute__((aligned(16))) = (int)((__native) data);
    7981        int after_arg __attribute__((aligned(16)));
    80        
     82
     83        thread_detach(THREAD);
     84
    8185        waitq_sleep(&can_start);
    8286
  • test/fpu/sse1/test.c

    r616f1759 r8d6d76a  
    5050        int arg __attribute__((aligned(16))) = (int)((__native) data);
    5151        int after_arg __attribute__((aligned(16)));
     52
     53        thread_detach(THREAD);
    5254       
    5355        waitq_sleep(&can_start);
     
    7880        int arg __attribute__((aligned(16))) = (int)((__native) data);
    7981        int after_arg __attribute__((aligned(16)));
     82
     83        thread_detach(THREAD);
    8084       
    8185        waitq_sleep(&can_start);
  • test/mm/falloc2/test.c

    r616f1759 r8d6d76a  
    5858        __address * frames =  (__address *) malloc(MAX_FRAMES * sizeof(__address), FRAME_ATOMIC);
    5959        ASSERT(frames != NULL);
     60       
     61        thread_detach(THREAD);
    6062
    6163        for (run = 0; run < THREAD_RUNS; run++) {
  • test/mm/slab1/test.c

    r616f1759 r8d6d76a  
    113113        int offs = (int)(__native) data;
    114114        int i,j;
    115 
     115       
     116        thread_detach(THREAD);
     117       
    116118        printf("Starting thread #%d...\n",THREAD->tid);
    117119        for (j=0; j<10; j++) {
  • test/mm/slab2/test.c

    r616f1759 r8d6d76a  
    127127        void *data=NULL, *new;
    128128
     129        thread_detach(THREAD);
     130
    129131        mutex_lock(&starter_mutex);
    130132        condvar_wait(&thread_starter,&starter_mutex);
  • test/synch/rwlock2/test.c

    r616f1759 r8d6d76a  
    4545void writer(void *arg)
    4646{
     47
     48        thread_detach(THREAD);
     49
    4750        printf("Trying to lock rwlock for writing....\n");   
    4851
  • test/synch/rwlock3/test.c

    r616f1759 r8d6d76a  
    4545void reader(void *arg)
    4646{
     47        thread_detach(THREAD);
     48
    4749        printf("cpu%d, tid %d: trying to lock rwlock for reading....\n", CPU->id, THREAD->tid);         
    4850        rwlock_read_lock(&rwlock);
  • test/synch/rwlock4/test.c

    r616f1759 r8d6d76a  
    7474{
    7575        int rc, to;
     76        thread_detach(THREAD);
    7677        waitq_sleep(&can_start);
    7778
     
    9697{
    9798        int rc, to;
     99        thread_detach(THREAD);
    98100        waitq_sleep(&can_start);
    99101       
  • test/synch/rwlock5/test.c

    r616f1759 r8d6d76a  
    5151void writer(void *arg)
    5252{
     53        thread_detach(THREAD);
     54
    5355        waitq_sleep(&can_start);
    5456
     
    6062void reader(void *arg)
    6163{
     64        thread_detach(THREAD);
     65
    6266        waitq_sleep(&can_start);
    6367       
  • test/synch/semaphore1/test.c

    r616f1759 r8d6d76a  
    5252void producer(void *arg)
    5353{
     54        thread_detach(THREAD); 
     55
    5456        waitq_sleep(&can_start);
    5557           
     
    6264void consumer(void *arg)
    6365{
     66        thread_detach(THREAD); 
     67       
    6468        waitq_sleep(&can_start);
    6569       
  • test/synch/semaphore2/test.c

    r616f1759 r8d6d76a  
    6868{
    6969        int rc, to;
     70       
     71        thread_detach(THREAD);
     72       
    7073        waitq_sleep(&can_start);
    7174       
  • test/thread/thread1/test.c

    r616f1759 r8d6d76a  
    4242static void threadtest(void *data)
    4343{
     44
     45        thread_detach(THREAD); 
     46
    4447        while(1)
    4548        {
Note: See TracChangeset for help on using the changeset viewer.