Changeset 7404cdc


Ignore:
Timestamp:
May 21, 2021, 3:59:56 PM (3 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
8d66610, b984d54
Parents:
090a7c5
Message:

added updated timeout_lock text

Location:
tests/unified_locking
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • tests/unified_locking/timeout_lock.cfa

    r090a7c5 r7404cdc  
    3333
    3434        for ( unsigned int i = 0; i < NoOfTimes + 3; i += 1 ) {
    35             if ( wait( c_m, m, 1`s ) ) {
     35            if ( wait( c_m, m, 1000000`ns ) ) {
    3636                        // printf("Thread: %p signalled\n", active_thread()); // removed since can't expect non deterministic output
    3737            } else {
     
    5151        // Test calls which occur increasingly close to timeout value.
    5252
    53         sleep( 100000000`ns );
     53        sleep( 100000`ns );
    5454        notify_one(c_m);
    5555        block();
    5656
    57         sleep( 500000000`ns );
     57        sleep( 500000`ns );
    5858        notify_one(c_m);
    5959        block();
    6060
    61         sleep( 900000000`ns );
     61        sleep( 900000`ns );
    6262        notify_one(c_m);
    6363        block();
    6464
    6565        for ( unsigned int i = 0; i < NoOfTimes; i += 1 ) {
    66             sleep( 999700000`ns );
     66            sleep( 999700`ns );
    6767                notify_one(c_m);
    6868            block();
     
    7373        processor p[2];
    7474        printf("Start Test 1: surface testing condition variable timeout routines\n");
    75         wait( c_m, 1`ns );                                                                                                              // bool wait( condition_variable(L) & this, Duration duration );
     75        wait( c_m, 1`ns );                                                                                                              // bool wait( condition_variable(L) & this, Duration duration );       
    7676        wait( c_m, 10, 1`ns );                                                                                                  // bool wait( condition_variable(L) & this, uintptr_t info, Duration duration );
    7777        lock(m); wait( c_m, m, 1`ns ); unlock(m);                                                               // bool wait( condition_variable(L) & this, L & l, Duration duration );
Note: See TracChangeset for help on using the changeset viewer.