1 // This file is used from other tests.
10 typedef MyObject
*MyObjectRef
;
12 void InitializeLibrary();
13 MyObject
*ObjectCreate();
14 long ObjectRead(MyObject
*);
15 void ObjectWrite(MyObject
*, long);
16 void ObjectWriteAnother(MyObject
*, long);
19 extern "C" void NonInstrumentedModule() {
22 MyObjectRef ref
= ObjectCreate();
23 std::thread
t1([ref
]{ ObjectWrite(ref
, 42); });
24 std::thread
t2([ref
]{ ObjectWrite(ref
, 43); });