Changeset 43114c5 in mainline for test/synch/semaphore1/test.c


Ignore:
Timestamp:
2005-04-09T18:22:53Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8262010
Parents:
e6ba9a3f
Message:

Introduce macros CPU, THREAD, TASK and use them to replace the→cpu, the→thread, the→task.
Later on, this will make it possible to reference *current* cpu, thread and/or task without the aid from virtual memory.

File:
1 edited

Legend:

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

    re6ba9a3f r43114c5  
    100100                for (j=0; j<(CONSUMERS+PRODUCERS)/2; j++) {
    101101                        for (k=0; k<i; k++) {
    102                                 thrd = thread_create(consumer, NULL, the->task, 0);
     102                                thrd = thread_create(consumer, NULL, TASK, 0);
    103103                                if (thrd)
    104104                                        thread_ready(thrd);
     
    107107                        }
    108108                        for (k=0; k<(4-i); k++) {
    109                                 thrd = thread_create(producer, NULL, the->task, 0);
     109                                thrd = thread_create(producer, NULL, TASK, 0);
    110110                                if (thrd)
    111111                                        thread_ready(thrd);
Note: See TracChangeset for help on using the changeset viewer.