Implement CreateAnonymousThread with BCC32.
September 13, 2017
Author: h.mohri
C++Builder 10.2 BCC32 can not write lambda.So write an implementation inInvoke() with TCppInterfacedObject<>.
struct T_thread_proc : TCppInterfacedObject<TProc>{
TNotifyEvent f_ev_;
struct T_sync_proc : TCppInterfacedObject<TThreadProcedure>{
TNotifyEvent f_ev_;
T_sync_proc(TNotifyEvent& ev2){ f_ev_ = ev2; }
…