X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ionnotes%2Fnode5.html;h=a2634c26facf96bf4e83610e10c19731c673dc72;hb=428266c577f55bd77cf036ed0d2af379613471e4;hp=51c46f894c67e6f0217feffedb478d18346bab93;hpb=6e84dc8312f2fdb5b8b7467a0279afd5b2df107f;p=ion3-doc.git diff --git a/ionnotes/node5.html b/ionnotes/node5.html index 51c46f8..a2634c2 100644 --- a/ionnotes/node5.html +++ b/ionnotes/node5.html @@ -28,31 +28,31 @@ original version by: Nikos Drakos, CBLU, University of Leeds @@ -61,9 +61,9 @@ original version by: Nikos Drakos, CBLU, University of Leeds Subsections @@ -83,10 +83,9 @@ original version by: Nikos Drakos, CBLU, University of Leeds

To keep Ion's code as simple as possible yet safe, there are restrictions when the WObj -destroy_obj +destroy_obj function that calls watches, the deinit routine and frees memory may -be called directly. In all other cases the -defer_destroy +be called directly. In all other cases the mainloop_defer_destroy function should be used to defer the call of destroy_obj until Ioncore returns to its main event loop. @@ -103,8 +102,7 @@ following cases: when the function created a frame to manage some other object but for some reason failed to reparent the object to this frame. -

  • In a deferred action handler set with - defer_action. +
  • In a deferred action handler set with mainloop_defer_action. Like deferred destroys, other deferred actions are called when Ioncore has returned to the main loop.
  • @@ -116,7 +114,7 @@ following cases:

    If there are no serious side effects from deferring destroying the object or you're unsure whether it is safe to destroy the object -immediately, use defer_destroy. +immediately, use mainloop_defer_destroy.

    @@ -145,7 +143,7 @@ parameters to functions. char* The string is the caller's responsibility and it must free it when no longer needed. -The called function may modify the string but the ''owner'' of +The called function may modify the string but the ``owner'' of the string is case-dependant. @@ -156,31 +154,31 @@ parameters to functions.