Ignore:
Timestamp:
Jan 13, 2025, 1:32:32 PM (8 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
c086c6e
Parents:
267b543
Message:

Clean some warnings from unused variables and pointer-to-int casts.

Location:
tests/concurrency/unified_locking
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/unified_locking/mcs.cfa

    r267b543 r6a6e205  
    2222unsigned cs() {
    2323        thread$ * me = active_thread();
    24         unsigned value = (unsigned)me;
     24        unsigned value = (uintptr_t)me;
    2525        mcs_node n;
    2626        lock(mo.l, n);
  • tests/concurrency/unified_locking/mcs_spin.cfa

    r267b543 r6a6e205  
    3232                mo.id = me;
    3333                yield(random(5));
    34                 value = ((uint32_t)random()) ^ ((uint32_t)me);
     34                value = ((uint32_t)random()) ^ ((uint32_t)(uintptr_t)me);
    3535                if(mo.id != me) sout | "Intruder!";
    3636                mo.cnt = cnt + 1;
  • tests/concurrency/unified_locking/mutex_test.hfa

    r267b543 r6a6e205  
    3232                mo.id = me;
    3333                yield(random(5));
    34                 value = ((uint32_t)random()) ^ ((uint32_t)me);
     34                value = ((uint32_t)random()) ^ ((uint32_t)(uintptr_t)me);
    3535                if(mo.id != me) sout | "Intruder!";
    3636                mo.cnt = cnt + 1;
  • tests/concurrency/unified_locking/timeout_lock.cfa

    r267b543 r6a6e205  
    2323thread T1 {};
    2424
    25 void main( T1 & this ) {
     25void main( T1 & ) {
    2626        lock(m);
    2727        wait( c_m, m, 1`s );
     
    4646thread T2 {};
    4747
    48 void main( T2 & this ) {
     48void main( T2 & ) {
    4949        block();
    5050
Note: See TracChangeset for help on using the changeset viewer.