WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=e81a9153bf39993e5263c3a52aa1470256a61e89

commit e81a9153bf39993e5263c3a52aa1470256a61e89
Author: Xavi Artigas <[email protected]>
Date:   Wed Nov 29 03:13:47 2017 -0800

    Wiki page main-loop.md changed with summary [Added freeze/thaw of timers] 
by Xavi Artigas
---
 pages/develop/guides/c/core/main-loop.md.txt   | 14 ++++++++++
 pages/develop/guides/c/porting-guide.md.md.txt | 37 --------------------------
 2 files changed, 14 insertions(+), 37 deletions(-)

diff --git a/pages/develop/guides/c/core/main-loop.md.txt 
b/pages/develop/guides/c/core/main-loop.md.txt
index bb30271c7..86c6201c2 100644
--- a/pages/develop/guides/c/core/main-loop.md.txt
+++ b/pages/develop/guides/c/core/main-loop.md.txt
@@ -81,6 +81,20 @@ Finally, the current interval can be extended, effectively 
delaying all future t
 efl_loop_timer_delay(timer_object, seconds);
 ```
 
+### Pausing a Timer ###
+
+A timer can be paused with:
+
+```c
+efl_event_freeze(timer_object);
+```
+
+Resume it from the position it stopped with:
+
+```c
+efl_event_thaw(timer_object);
+```
+
 ## File Descriptor Monitors ##
 
 EFL can monitor the system's file descriptor activity through ``Efl.Loop.Fd`` 
objects and trigger relevant events.
diff --git a/pages/develop/guides/c/porting-guide.md.md.txt 
b/pages/develop/guides/c/porting-guide.md.md.txt
deleted file mode 100644
index 317643b34..000000000
--- a/pages/develop/guides/c/porting-guide.md.md.txt
+++ /dev/null
@@ -1,37 +0,0 @@
----
-~~Title: EFL C Porting Guide~~
----
-
-# EFL C Porting Guide #
-
-## Main Loop ##
-
-### Timers ###
-
-Programming guides: [New](develop/guides/c/core/main-loop.md#Timers), 
[Old](develop/legacy/program_guide/main_loop/timers)
-
-* Timers are now regular Eo objects created with 
``efl_add(EFL_LOOP_TIMER_CLASS, ...)`` and destroyed with ``efl_unref()``.
-
-* The timer callback is registered with ``efl_event_callback_add(timer_object, 
EFL_LOOP_TIMER_EVENT_TICK, ...)``.
-
-* Timers are always periodic. The callback does not return 
``ECORE_CALLBACK_RENEW`` or ``ECORE_CALLBACK_CANCEL`` anymore. If you want a 
one-shot timer, remove it from the callback after it has fired once.
-
-* ``ecore_timer_interval_set()`` -> ``efl_loop_timer_interval_set()``
-
-* ``ecore_timer_pending_get()`` -> ``efl_loop_timer_pending_get()``
-
-* ``ecore_timer_reset()`` -> ``efl_loop_timer_reset()``
-
-* All ``ecore_timer_*()`` methods have been removed.
-
-### File Descriptors ###
-
-Programming guides: 
[New](develop/guides/c/core/main-loop.md#File_Descriptor_Monitors), 
[Old](develop/legacy/program_guide/main_loop/file_descriptors)
-
-* File Descriptors are now regular Eo objects created with 
``efl_add(EFL_LOOP_FD_CLASS, ...)`` and destroyed with ``efl_unref()``.
-
-* Register to FD events with ``efl_event_callback_add()``, possible events are 
``EFL_LOOP_FD_EVENT_READ``, ``_WRITE`` and ``_ERROR``.
-
-* Retrieve the internal FDs through the ``fd`` and ``fd_file`` properties .
-
-* All ``ecore_main_fd_*()`` methods have been removed.

-- 


Reply via email to