void MaybeInitialize() { lock (this) { if (handle == IntPtr.Zero) { callback = new MonoSCReachabilityCallback(Callback); handle = mono_sc_reachability_new(callback); } } }
static extern IntPtr mono_sc_reachability_new (MonoSCReachabilityCallback callback);
void MaybeInitialize () { lock (this) { if (handle == IntPtr.Zero) { callback = new MonoSCReachabilityCallback (Callback); handle = mono_sc_reachability_new (callback); } } }
static extern IntPtr mono_sc_reachability_new(MonoSCReachabilityCallback callback);