Revert^2 " Remove TransferDeathRecipients when ABpBinder is deleted"
This reverts commit 00aa96b948c9db7cd4a7ea3aca9071272ebd2c9f.
Reason for revert: fix multi threading issue
The mDeathRecipients emplace_back was not protected and was causing the issues found in b/326585851
Ignore-AOSP-First: b/319210610
Test: atest libbinder_ndk_unit_test
Bug: 325612851
Change-Id: I740d89dcac2b814e1796bbfa2e0618e0aac9804d
diff --git a/libs/binder/ndk/tests/iface.cpp b/libs/binder/ndk/tests/iface.cpp
index 3ee36cd..ca92727 100644
--- a/libs/binder/ndk/tests/iface.cpp
+++ b/libs/binder/ndk/tests/iface.cpp
@@ -25,6 +25,7 @@
const char* IFoo::kSomeInstanceName = "libbinder_ndk-test-IFoo";
const char* IFoo::kInstanceNameToDieFor = "libbinder_ndk-test-IFoo-to-die";
+const char* IFoo::kInstanceNameToDieFor2 = "libbinder_ndk-test-IFoo-to-die2";
const char* IFoo::kIFooDescriptor = "my-special-IFoo-class";
struct IFoo_Class_Data {