diff options
author | 2018-03-01 11:36:47 -0800 | |
---|---|---|
committer | 2018-03-01 11:47:36 -0800 | |
commit | 2fe87b09055cd256cdce038c4c70d92b955c991b (patch) | |
tree | a7652e9285797130e4d4ece7a6f271530be4b14f /test/core/gpr/arena_test.cc | |
parent | 8ffa1ae93310646cdf1b15c3a8c2655268d1a47f (diff) |
Move assignment for Thread, make destructor optional, loop cv waits
Diffstat (limited to 'test/core/gpr/arena_test.cc')
-rw-r--r-- | test/core/gpr/arena_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/core/gpr/arena_test.cc b/test/core/gpr/arena_test.cc index b00c014cea..111414ea3e 100644 --- a/test/core/gpr/arena_test.cc +++ b/test/core/gpr/arena_test.cc @@ -20,7 +20,6 @@ #include <inttypes.h> #include <string.h> -#include <new> #include <grpc/support/alloc.h> #include <grpc/support/log.h> @@ -102,7 +101,7 @@ static void concurrent_test(void) { grpc_core::Thread thds[CONCURRENT_TEST_THREADS]; for (int i = 0; i < CONCURRENT_TEST_THREADS; i++) { - new (&thds[i]) + thds[i] = grpc_core::Thread("grpc_concurrent_test", concurrent_test_body, &args); thds[i].Start(); } |