summaryrefslogtreecommitdiffstats
path: root/include/framework/scheduling
Commit message (Collapse)AuthorAgeFilesLines
* FIFOScheduler: fixed a few synchronization issuesDouglas B. Rumbaugh2023-10-311-8/+5
|
* SerialScheduler: added a single-threaded schedulerDouglas B. Rumbaugh2023-10-311-0/+67
| | | | | | Added a new scheduler for ensuring single-threaded operation. Additionally, added a static assert to (at least for now) restrict the use of tagging to this single threaded scheduler.
* Epoch: Creating an epoch now takes references on buffers + versionsDouglas B. Rumbaugh2023-10-311-0/+2
| | | | | | | | | | When an epoch is created using the constructor Epoch(Structure, Buffer), it will call take_reference() on both. This was necessary to ensure that the destructor doesn't fail, as it releases references and fails if the refcnt is 0. It releases the user of the object from the burden of manually taking references in this situation.
* General Comment + Consistency updatesDouglas Rumbaugh2023-10-304-199/+6
|
* Epoch/DynamicExtension: added cv to epoch retirement checkDouglas Rumbaugh2023-10-301-0/+31
| | | | | | Instead of busy waiting on the active job count, a condition variable is now used to wait for all active jobs to finish before freeing an epoch's resources.
* FIFOScheduler: correctly protect m_cv with a lockDouglas Rumbaugh2023-10-301-0/+5
|
* Concurrency updates + fixes for compile errorsDouglas Rumbaugh2023-10-302-1/+4
|
* Began moving to an explicit epoch-based systemDouglas Rumbaugh2023-10-233-9/+137
| | | | | | | I started moving over to an explicit Epoch based system, which has necessitated a ton of changes throughout the code base. This will ultimately allow for a much cleaner set of abstractions for managing concurrency.
* BugfixesDouglas Rumbaugh2023-10-231-0/+1
|
* Initial pass w/ new scheduler setupDouglas Rumbaugh2023-10-202-246/+57
| | | | currently there's a race condition of some type to sort out.
* Checkpointing workDouglas Rumbaugh2023-10-202-33/+84
| | | | I'll probably throw all this out, but I want to stash it just in case.
* Re-structuring Project + scheduling updatesDouglas Rumbaugh2023-09-253-0/+485
This is a big one--probably should have split it apart, but I'm feeling lazy this morning. * Organized the mess of header files in include/framework by splitting them out into their own subdirectories, and renaming a few files to remove redundancies introduced by the directory structure. * Introduced a new framework/ShardRequirements.h header file for simpler shard development. This header simply contains the necessary includes from framework/* for creating shard files. This should help to remove structural dependencies from the framework file structure and shards, as well as centralizing the necessary framework files to make shard development easier. * Created a (currently dummy) SchedulerInterface, and make the scheduler implementation a template parameter of the dynamic extension for easier testing of various scheduling policies. There's still more work to be done to fully integrate the scheduler (queries, multiple buffers), but some more of the necessary framework code for this has been added as well. * Adjusted the Task interface setup for the scheduler. The task structures have been removed from ExtensionStructure and placed in their own header file. Additionally, I started experimenting with using std::variant, as opposed to inheritence, to implement subtype polymorphism on the Merge and Query tasks. The scheduler now has a general task queue that contains both, and std::variant, std::visit, and std::get are used to manipulate them without virtual functions. * Removed Alex.h, as it can't build anyway. There's a branch out there containing the Alex implementation stripped of the C++20 stuff. So there's no need to keep it here.