Changeset 70b6de1 in mainline for kernel/test/synch/rwlock4.c


Ignore:
Timestamp:
2006-12-11T19:33:19Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e54fb21
Parents:
f272cb8
Message:

integrate rest of the tests

File:
1 moved

Legend:

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

    rf272cb8 r70b6de1  
    4747static rwlock_t rwlock;
    4848
    49 SPINLOCK_INITIALIZE(lock);
     49static SPINLOCK_INITIALIZE(lock);
    5050
    5151static waitq_t can_start;
    5252
    53 uint32_t seed = 0xdeadbeef;
     53static uint32_t seed = 0xdeadbeef;
    5454
    5555static uint32_t random(uint32_t max);
     
    5959static void failed(void);
    6060
    61 uint32_t random(uint32_t max)
     61static uint32_t random(uint32_t max)
    6262{
    6363        uint32_t rc;
     
    7171
    7272
    73 void writer(void *arg)
     73static void writer(void *arg)
    7474{
    7575        int rc, to;
     
    9494}
    9595
    96 void reader(void *arg)
     96static void reader(void *arg)
    9797{
    9898        int rc, to;
     
    113113}
    114114
    115 void failed(void)
     115static void failed(void)
    116116{
    117117        printf("Test failed prematurely.\n");
     
    119119}
    120120
    121 void test(void)
     121void test_rwlock4(void)
    122122{
    123123        context_t ctx;
Note: See TracChangeset for help on using the changeset viewer.