Commit 90862581 authored by jdelange's avatar jdelange
Browse files

* po_hi_main.c

   - Fix gprof functionality (part of fix for bug#182)

git-svn-id: 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 505af1fd
......@@ -362,8 +362,12 @@ void __po_hi_wait_end_of_instrumentation ()
#include <unistd.h>
__po_hi_time_t now;
__po_hi_time_t ten_secs;
__po_hi_time_t time_to_wait;
__po_hi_get_time (&now);
__po_hi_delay_until (__po_hi_add_times (now, __po_hi_seconds (10)));
__po_hi_seconds (&ten_secs, 10);
__po_hi_add_times (&time_to_wait, &ten_secs, &now);
__po_hi_delay_until (&time_to_wait);
__DEBUGMSG ("Call exit()\n");
__po_hi_tasks_killall ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment