]> rtime.felk.cvut.cz Git - frescor/forb.git/blobdiff - src/object.h
Added forb_get_req_source()
[frescor/forb.git] / src / object.h
index 1b0f733cc567d09e7505e4ff244d6ef9e3799826..dc5af81cf107b1527a3a5bc71105a4894126b5ba 100644 (file)
@@ -63,6 +63,7 @@
 #include <forb/refcnt.h>
 #include <forb/basic_types.h>
 #include <forb/executor.h>
+#include <forb/exec_req.h>
 
 /**
  * Object reference structure.
@@ -114,6 +115,17 @@ struct forb_object {
         * are executed in. */
        forb_executor_t *executor;
 
+       /**
+        * Pointer to the execute request in case of remote
+        * invocation.
+        *
+        * @warning If the object can be called both localy and
+        * remotely this field may contain wrong value as the local
+        * and remote requests can be executed in parallel, in
+        * different threads. This will be fixed after even local
+        * invocations will be executed through executors. */
+       forb_exec_req_t *exec_req;
+
        gavl_node_t node;       /**< Node for forb->objects tree */
        /*@}*/
 };