Changeset 88ac843e


Ignore:
Timestamp:
Oct 27, 2022, 3:50:15 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
22a0e87
Parents:
a167c70c
Message:

Moved lockfree containers to containers/lockfree.hfa.
Added poison_list, which is a lock-free bag with push and poison as only operations.

Files:
1 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/worker.hfa

    ra167c70c r88ac843e  
    22
    33#include <iofwd.hfa>
    4 #include <queueLockFree.hfa>
     4#include <containers/lockfree.hfa>
    55#include <thread.hfa>
    66
  • libcfa/src/Makefile.am

    ra167c70c r88ac843e  
    6262        containers/array.hfa \
    6363        containers/list.hfa \
    64         containers/queueLockFree.hfa \
    65         containers/stackLockFree.hfa \
     64        containers/lockfree.hfa \
    6665        containers/string_sharectx.hfa \
    6766        containers/vector2.hfa \
  • libcfa/src/concurrency/locks.hfa

    ra167c70c r88ac843e  
    2121
    2222#include "bits/weakso_locks.hfa"
    23 #include "containers/queueLockFree.hfa"
     23#include "containers/lockfree.hfa"
    2424#include "containers/list.hfa"
    2525
     
    423423}
    424424
    425 static inline size_t on_wait(simple_owner_lock & this) with(this) { 
     425static inline size_t on_wait(simple_owner_lock & this) with(this) {
    426426        lock( lock __cfaabi_dbg_ctx2 );
    427427        /* paranoid */ verifyf( owner != 0p, "Attempt to release lock %p that isn't held", &this );
  • libcfa/src/heap.cfa

    ra167c70c r88ac843e  
    211211#if BUCKETLOCK == SPINLOCK
    212212#elif BUCKETLOCK == LOCKFREE
    213 #include <stackLockFree.hfa>
     213#include <containers/lockfree.hfa>
    214214#else
    215215        #error undefined lock type for bucket lock
     
    505505                                freeLists[j].blockSize = bucketSizes[j];
    506506                        } // for
    507        
     507
    508508                        heapBuffer = 0p;
    509509                        heapReserve = 0;
  • tests/collections/atomic_mpsc.cfa

    ra167c70c r88ac843e  
    11#include <fstream.hfa>
    2 #include <queueLockFree.hfa>
     2#include <containers/lockfree.hfa>
    33#include <thread.hfa>
    44
Note: See TracChangeset for help on using the changeset viewer.