Changeset ff14c520 in mainline for test/synch


Ignore:
Timestamp:
2006-03-16T22:31:39Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
93165be
Parents:
37c57f2
Message:

It is now possible to associate symbolic names with both threads and tasks.
More verbose kconsole threads, tasks and scheduler commands.

Location:
test/synch
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • test/synch/rwlock2/test.c

    r37c57f2 rff14c520  
    7575        rwlock_read_lock(&rwlock);     
    7676       
    77         thrd = thread_create(writer, NULL, TASK, 0);
     77        thrd = thread_create(writer, NULL, TASK, 0, "writer");
    7878        if (thrd)
    7979                thread_ready(thrd);
  • test/synch/rwlock3/test.c

    r37c57f2 rff14c520  
    7878       
    7979        for (i=0; i<4; i++) {
    80                 thrd = thread_create(reader, NULL, TASK, 0);
     80                thrd = thread_create(reader, NULL, TASK, 0, "reader");
    8181                if (thrd)
    8282                        thread_ready(thrd);
  • test/synch/rwlock4/test.c

    r37c57f2 rff14c520  
    138138                printf("Creating %d readers\n", k);
    139139                for (i=0; i<k; i++) {
    140                         thrd = thread_create(reader, NULL, TASK, 0);
     140                        thrd = thread_create(reader, NULL, TASK, 0, "reader");
    141141                        if (thrd)
    142142                                thread_ready(thrd);
     
    148148                printf("Creating %d writers\n", k);
    149149                for (i=0; i<k; i++) {
    150                         thrd = thread_create(writer, NULL, TASK, 0);
     150                        thrd = thread_create(writer, NULL, TASK, 0, "writer");
    151151                        if (thrd)
    152152                                thread_ready(thrd);
  • test/synch/rwlock5/test.c

    r37c57f2 rff14c520  
    9696                for (j=0; j<(READERS+WRITERS)/2; j++) {
    9797                        for (k=0; k<i; k++) {
    98                                 thrd = thread_create(reader, NULL, TASK, 0);
     98                                thrd = thread_create(reader, NULL, TASK, 0, "reader");
    9999                                if (thrd)
    100100                                        thread_ready(thrd);
     
    103103                        }
    104104                        for (k=0; k<(4-i); k++) {
    105                                 thrd = thread_create(writer, NULL, TASK, 0);
     105                                thrd = thread_create(writer, NULL, TASK, 0, "writer");
    106106                                if (thrd)
    107107                                        thread_ready(thrd);
  • test/synch/semaphore1/test.c

    r37c57f2 rff14c520  
    100100                for (j=0; j<(CONSUMERS+PRODUCERS)/2; j++) {
    101101                        for (k=0; k<i; k++) {
    102                                 thrd = thread_create(consumer, NULL, TASK, 0);
     102                                thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
    103103                                if (thrd)
    104104                                        thread_ready(thrd);
     
    107107                        }
    108108                        for (k=0; k<(4-i); k++) {
    109                                 thrd = thread_create(producer, NULL, TASK, 0);
     109                                thrd = thread_create(producer, NULL, TASK, 0, "producer");
    110110                                if (thrd)
    111111                                        thread_ready(thrd);
  • test/synch/semaphore2/test.c

    r37c57f2 rff14c520  
    108108                printf("Creating %d consumers\n", k);
    109109                for (i=0; i<k; i++) {
    110                         thrd = thread_create(consumer, NULL, TASK, 0);
     110                        thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
    111111                        if (thrd)
    112112                                thread_ready(thrd);
Note: See TracChangeset for help on using the changeset viewer.