Ignore:
Timestamp:
Mar 18, 2023, 2:20:40 PM (3 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
0faacb8
Parents:
5ff9b23
Message:

updated mutex stmt run script and header for cpp variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/mutex_stmt/cpp/cppLock.hpp

    r5ff9b23 r119e6c8  
    1717        }
    1818};
     19
     20inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b ) {
     21    a.lock(); b.lock();
     22}
     23inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d ) {
     24    a.lock(); b.lock(); c.lock(); d.lock();
     25}
     26inline void lock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d, cpp_test_spinlock &e, cpp_test_spinlock &f, cpp_test_spinlock &g, cpp_test_spinlock &h ) {
     27    a.lock(); b.lock(); c.lock(); d.lock(); e.lock(); f.lock(); g.lock(); h.lock();
     28}
     29inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b ) {
     30    a.unlock(); b.unlock();
     31}
     32inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d ) {
     33    a.unlock(); b.unlock(); c.unlock(); d.unlock();
     34}
     35inline void unlock( cpp_test_spinlock &a, cpp_test_spinlock &b, cpp_test_spinlock &c, cpp_test_spinlock &d, cpp_test_spinlock &e, cpp_test_spinlock &f, cpp_test_spinlock &g, cpp_test_spinlock &h ) {
     36    a.unlock(); b.unlock(); c.unlock(); d.unlock(); e.unlock(); f.unlock(); g.unlock(); h.unlock();
     37}
Note: See TracChangeset for help on using the changeset viewer.