[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [announce] Concurrent Modules for GNU Octave
From: |
Driss Ghaddab |
Subject: |
Re: [announce] Concurrent Modules for GNU Octave |
Date: |
Mon, 28 Feb 2005 10:36:43 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Hi Andrey,
Andrey Romanenko a écrit :
Hi Driss,
Thanks for the software. I would like to report a problem that I get when I
try to compile the timer module. I' ve attached the output of the make
process below. Thank you.
Andrey
Here is a workaround for the unimplemented "use of enumeral_type in
templates" which is a known bug in gcc:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17327
The patch replaces the cmo_hook calls in timer-object.cc with its
content. cmo_hook is a helper function to create instances of pointers
to member functions objects. It is used to register pre and post hooks
for user defined callback functions.
Please, apply with -p1 from within cmo directory.
Cheers,
Driss
--- orig/timer/timer-object.cc
+++ mod/timer/timer-object.cc
@@ -73,7 +73,7 @@
(cmo_callback *) NULL,
CMO_PROPERTY_READ_ATTR_NOSYNC_PROTECTED, NULL,
CMO_PROPERTY_WRITE_ATTR_NOSYNC_PROTECTED, NULL,
- cmo_hook(&timer_object::error_event_pre_hook),
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::error_event_pre_hook),
NULL);
register_property_enum ("ExecutionMode",
"",
@@ -120,15 +120,15 @@
0,
CMO_PROPERTY_READ_ATTR_NOSYNC_PROTECTED, NULL,
CMO_PROPERTY_WRITE_ATTR_NOSYNC_PROTECTED, NULL,
- cmo_hook (&timer_object::start_event_pre_hook),
- cmo_hook (&timer_object::start_event_post_hook));
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::start_event_pre_hook),
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::start_event_post_hook));
register_property_callback ("StopFcn",
"",
0,
CMO_PROPERTY_READ_ATTR_NOSYNC_PROTECTED, NULL,
CMO_PROPERTY_WRITE_ATTR_NOSYNC_PROTECTED, NULL,
- cmo_hook(&timer_object::stop_event_pre_hook),
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::stop_event_pre_hook),
NULL);
register_property_string ("Tag",
@@ -154,8 +154,8 @@
0,
CMO_PROPERTY_READ_ATTR_NOSYNC_PROTECTED, NULL,
CMO_PROPERTY_WRITE_ATTR_NOSYNC_PROTECTED, NULL,
- cmo_hook(&timer_object::timer_event_pre_hook),
- cmo_hook(&timer_object::timer_event_post_hook));
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::timer_event_pre_hook),
+ new cmo_hook_callback_tmpl<timer_object>
(&timer_object::timer_event_post_hook));
register_property_string ("Type",
"",