diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-07-12 13:24:36 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-07-12 13:24:36 +0000 |
commit | 068aaaeb4920384ff015f7b51b5345132d8242dc (patch) | |
tree | dbaf2889c3dade5aae1d7ea3866c5d3ccee31695 /src | |
parent | b7684c4dd689b6e51a3c3490e1160807386c205b (diff) |
The scheduler now creates named timers for every scheduled routine.
The name is build as "<thorn> <routine description from schedule.ccl>".
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2289 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r-- | src/main/ScheduleInterface.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c index 75e334b5..ca222687 100644 --- a/src/main/ScheduleInterface.c +++ b/src/main/ScheduleInterface.c @@ -1132,6 +1132,7 @@ static t_attribute *CreateAttribute(const char *description, int n_options, va_list *ap) { + char *timername; t_attribute *this; this = (t_attribute *)malloc(sizeof(t_attribute)); @@ -1188,8 +1189,10 @@ static t_attribute *CreateAttribute(const char *description, this->FunctionData.n_SyncGroups = n_sync_groups; /* Add a timer to the item */ - - this->timer_handle = CCTK_TimerCreateI(); + timername = (char *) malloc (strlen (thorn) + strlen (description) + 3); + sprintf (timername, "%s: %s", thorn, description); + this->timer_handle = CCTK_TimerCreate(timername); + free (timername); } else { |