Ignore:
Timestamp:
Oct 6, 2021, 8:40:19 PM (3 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
05c941a, 68fe946e
Parents:
8dcb832
Message:

convert from test programs I/O acquire to mutex statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/semaphore.cfa

    r8dcb832 r237df76  
    22#include <locks.hfa>
    33#include <thread.hfa>
     4#include <mutex_stmt.hfa>
    45
    56enum { num_blockers = 17, num_unblockers = 13 };
     
    2829                thrash();
    2930                P(ben);
    30                 if(((thread&)this).seqable.next != 0p) sout | acquire |"Link not invalidated";
     31                if(((thread&)this).seqable.next != 0p) mutex(sout) sout | "Link not invalidated";
    3132                thrash();
    3233        }
Note: See TracChangeset for help on using the changeset viewer.