[proxy](1/n) start self-vendored STL with atomic (#715)
* [proxy] start self-vendored STL * address CR
This commit is contained in:
committed by
GitHub
parent
fb29a5e085
commit
feff2e8151
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "test/setup.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <iostream>
|
||||
#include <snmalloc/backend/globalconfig.h>
|
||||
#include <snmalloc/snmalloc_core.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <atomic>
|
||||
#include <iostream>
|
||||
#include <snmalloc/snmalloc.h>
|
||||
#include <test/opt.h>
|
||||
|
||||
@@ -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, ¶m, i);
|
||||
queue_threads[i] = std::thread(::proxy, ¶m, i);
|
||||
}
|
||||
|
||||
/* Spawn producers */
|
||||
|
||||
Reference in New Issue
Block a user