Add a timer to the PAL

This adds a way to periodically pool the PAL to see if any timers have
expired.  Timers can be used to periodically provide callbacks to the
rest of snmalloc.
This commit is contained in:
Matthew Parkinson
2021-10-20 09:31:45 +01:00
committed by Matthew Parkinson
parent c1062e629e
commit 20a114cb62
13 changed files with 343 additions and 72 deletions

View File

@@ -2,6 +2,8 @@
#include "bits.h"
#include <atomic>
namespace snmalloc
{
class FlagLock

View File

@@ -4,6 +4,7 @@
#include "flaglock.h"
#include <array>
#include <atomic>
#include <type_traits>
namespace snmalloc