George,
I made some tests with the libevent but probably I´m doing something
wrong... because it does not work.
struct timeval time;
opal_event_t *ev;
ev = (opal_event_t*)malloc(sizeof(opal_event_t));
opal_evtimer_set(ev, my_func, NULL);
time.tv_sec = 10;
time.tv_usec = 0;
opal_evtimer_add(ev, &time);
I saw that opal_evtimer_add/set are macros for event_add/set (from
libevent, no?)
I´m trying to put this code on a PML, but on this application no
messages are exchanged.
Thanks,
Leonardo
George Bosilca escribió:
Leonardo,
All events generated by the libevent are catched internally by the
ompi library, but are not propagated until the next call to
opal_progress. If you want to use alarms that trigger outside the
opal_progress you will have to deal directly with the libevent (and
not use ORTE_TIMER_EVENT).
george.
On Nov 7, 2008, at 1:32 PM, Leonardo Fialho wrote:
Hi All,
Does the libevent works with an application which does not communicate?
i.e. I have an application which does not receive or send messages
for a long time, but on the PML layer a have defined some event using
the ORTE_TIMER_EVENT(time, func) macro. This macro will be should be
called after time seconds, no? On my tests it does not occur, only if
any communication occurs.
Did I made any mistake?
--
Leonardo Fialho
Computer Architecture and Operating Systems Department - CAOS
Universidad Autonoma de Barcelona - UAB
ETSE, Edifcio Q, QC/3088
http://www.caos.uab.es
Phone: +34-93-581-2888
Fax: +34-93-581-2478
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
------------------------------------------------------------------------
_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel
--
Leonardo Fialho
Computer Architecture and Operating Systems Department - CAOS
Universidad Autonoma de Barcelona - UAB
ETSE, Edifcio Q, QC/3088
http://www.caos.uab.es
Phone: +34-93-581-2888
Fax: +34-93-581-2478