mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 03:16:56 -05:00
Move maintainence thread func take u64 rather than int
signed rollover is UB
This commit is contained in:
parent
78e60fb07b
commit
b42e0bc714
3 changed files with 8 additions and 6 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
static pthread_t g_thread;
|
||||
static std::vector<std::function<void(int)>> g_funcs;
|
||||
static std::vector<std::function<void(u64)>> g_funcs;
|
||||
static mutex_t g_mutex;
|
||||
|
||||
static
|
||||
|
|
@ -49,7 +49,7 @@ MaintenanceThread::setup()
|
|||
}
|
||||
|
||||
void
|
||||
MaintenanceThread::push_job(const std::function<void(int)> &func_)
|
||||
MaintenanceThread::push_job(const std::function<void(u64)> &func_)
|
||||
{
|
||||
LockGuard lg(g_mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue