[proxy](1/n) start self-vendored STL with atomic (#715)

* [proxy] start self-vendored STL

* address CR
This commit is contained in:
Schrodinger ZHU Yifan
2025-01-03 15:49:32 +08:00
committed by GitHub
parent fb29a5e085
commit feff2e8151
34 changed files with 469 additions and 131 deletions

View File

@@ -5,6 +5,7 @@
#include "test/setup.h"
#include <atomic>
#include <iostream>
#include <snmalloc/backend/globalconfig.h>
#include <snmalloc/snmalloc_core.h>

View File

@@ -15,6 +15,7 @@ int main()
# include "test/setup.h"
# include <atomic>
# include <iostream>
# include <memory>
# include <snmalloc/backend/globalconfig.h>
@@ -201,4 +202,4 @@ int main()
# endif
return 0;
}
#endif
#endif

View File

@@ -1,3 +1,4 @@
#include <atomic>
#include <iostream>
#include <snmalloc/snmalloc.h>
#include <test/opt.h>

View File

@@ -275,7 +275,7 @@ int main(int argc, char** argv)
/* Spawn proxies */
for (size_t i = param.N_CONSUMER; i < param.N_QUEUE; i++)
{
queue_threads[i] = std::thread(proxy, &param, i);
queue_threads[i] = std::thread(::proxy, &param, i);
}
/* Spawn producers */