Changeset 62b6d17 in mainline for kernel/test/synch


Ignore:
Timestamp:
2006-12-14T16:47:36Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aeaebcc
Parents:
55cc9bc
Message:

introduce uncounted threads, whose accounting doesn't affect accumulated task accounting
run tests in kconsole thread again

Location:
kernel/test/synch
Files:
6 edited

Legend:

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

    r55cc9bc r62b6d17  
    6767        rwlock_read_lock(&rwlock);     
    6868       
    69         thrd = thread_create(writer, NULL, TASK, 0, "writer");
     69        thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    7070        if (thrd)
    7171                thread_ready(thrd);
  • kernel/test/synch/rwlock3.c

    r55cc9bc r62b6d17  
    6565       
    6666        for (i = 0; i < 4; i++) {
    67                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     67                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    6868                if (thrd)
    6969                        thread_ready(thrd);
  • kernel/test/synch/rwlock4.c

    r55cc9bc r62b6d17  
    131131        printf("Creating %d readers\n", k);
    132132        for (i = 0; i < k; i++) {
    133                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     133                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    134134                if (thrd)
    135135                        thread_ready(thrd);
     
    141141        printf("Creating %d writers\n", k);
    142142        for (i = 0; i < k; i++) {
    143                 thrd = thread_create(writer, NULL, TASK, 0, "writer");
     143                thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    144144                if (thrd)
    145145                        thread_ready(thrd);
  • kernel/test/synch/rwlock5.c

    r55cc9bc r62b6d17  
    8888                for (j = 0; j < (READERS + WRITERS) / 2; j++) {
    8989                        for (k = 0; k < i; k++) {
    90                                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     90                                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    9191                                if (thrd)
    9292                                        thread_ready(thrd);
     
    9595                        }
    9696                        for (k = 0; k < (4 - i); k++) {
    97                                 thrd = thread_create(writer, NULL, TASK, 0, "writer");
     97                                thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    9898                                if (thrd)
    9999                                        thread_ready(thrd);
  • kernel/test/synch/semaphore1.c

    r55cc9bc r62b6d17  
    9191                for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) {
    9292                        for (k = 0; k < i; k++) {
    93                                 thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
     93                                thrd = thread_create(consumer, NULL, TASK, 0, "consumer", false);
    9494                                if (thrd)
    9595                                        thread_ready(thrd);
     
    9898                        }
    9999                        for (k = 0; k < (4 - i); k++) {
    100                                 thrd = thread_create(producer, NULL, TASK, 0, "producer");
     100                                thrd = thread_create(producer, NULL, TASK, 0, "producer", false);
    101101                                if (thrd)
    102102                                        thread_ready(thrd);
  • kernel/test/synch/semaphore2.c

    r55cc9bc r62b6d17  
    9494        printf("Creating %d consumers\n", k);
    9595        for (i = 0; i < k; i++) {
    96                 thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
     96                thrd = thread_create(consumer, NULL, TASK, 0, "consumer", false);
    9797                if (thrd)
    9898                        thread_ready(thrd);
Note: See TracChangeset for help on using the changeset viewer.