/// <summary> /// Dispatches an synchronous message to a Ecore main loop. /// </summary> /// <param name="d">The <see cref="T:System.Threading.SendOrPostCallback"/> delegate to call.</param> /// <param name="state">The object passed to the delegate.</param> /// <remarks> /// The Send method starts a synchronous request to send a message.</remarks> /// <since_tizen> preview </since_tizen> public override void Send(SendOrPostCallback d, object state) { EcoreMainloop.Send(() => { d(state); }); }
/// <summary> /// Dispatches an asynchronous message to a Ecore main loop. /// </summary> /// <param name="d">The <see cref="T:System.Threading.SendOrPostCallback"/> delegate to call.</param> /// <param name="state">The object passed to the delegate.</param> /// <remarks>The Post method starts an asynchronous request to post a message.</remarks> /// <since_tizen> preview </since_tizen> public override void Post(SendOrPostCallback d, object state) { EcoreMainloop.PostAndWakeUp(() => { d(state); }); }