Changes in / [929d925:b680198]


Ignore:
Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/locks.hfa

    r929d925 rb680198  
    174174};
    175175
     176static inline void ?{}(fast_lock & this) { this.owner = 0p; }
     177
    176178static inline bool $try_lock(fast_lock & this, $thread * thrd) {
    177179    $thread * exp = 0p;
  • libcfa/src/concurrency/ready_queue.cfa

    r929d925 rb680198  
    2020
    2121
    22 // #define USE_RELAXED_FIFO
     22#define USE_RELAXED_FIFO
    2323// #define USE_WORK_STEALING
    24 #define USE_CPU_WORK_STEALING
     24// #define USE_CPU_WORK_STEALING
    2525
    2626#include "bits/defs.hfa"
     
    760760                for(i; lanes.count) {
    761761                        unsigned long long tsc1 = ts(lanes.data[i]);
    762                         unsigned long long tsc2 = rdtscl()
     762                        unsigned long long tsc2 = rdtscl();
    763763                        lanes.tscs[i].tv = min(tsc1, tsc2);
    764764                }
Note: See TracChangeset for help on using the changeset viewer.