Skip to content

Commit

Permalink
Fix CcdCallback build issues with different build options
Browse files Browse the repository at this point in the history
  • Loading branch information
stwhite91 committed May 9, 2023
1 parent bb969f7 commit 9790de3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/conv-core/conv-conds.C
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ typedef struct _ccd_cblist {
const static double periodicCallInterval[CCD_PERIODIC_MAX]=
{0.001, 0.010, 0.100, 1.0, 5.0, 10.0, 60.0, 2*60.0, 5*60.0, 10*60.0, 3600.0, 12*3600.0, 24*3600.0};

/** The number of timer-based condition callbacks */
CpvDeclare(int, _ccd_num_timed_cond_cbs);

/* Cond callbacks that use the above time intervals for their condition are considered "timed" */
static bool isTimed(int condnum) {
return (condnum >= CcdPERIODIC_FIRST && condnum < CcdPERIODIC_LAST);
Expand Down Expand Up @@ -270,8 +273,6 @@ typedef struct {
CpvStaticDeclare(ccd_heap_elem*, ccd_heap);
/** The length of the callback heap */
CpvDeclare(int, _ccd_heaplen);
/** The number of timer-based condition callbacks */
CpvDeclare(int, _ccd_num_timed_cond_cbs);
/** The max allowed length of the callback heap */
CpvStaticDeclare(int, ccd_heapmaxlen);

Expand Down
2 changes: 1 addition & 1 deletion src/conv-core/converse.h
Original file line number Diff line number Diff line change
Expand Up @@ -1096,11 +1096,11 @@ typedef void (*CmiStartFn)(int argc, char **argv);
@addtogroup ConverseScheduler
@{
*/
extern void CcdCallBacks(void);
#if CSD_NO_PERIODIC
#define CsdPeriodic()
#define CsdResetPeriodic()
#else
extern void CcdCallBacks(void);
extern int CcdNumTimerCBs(void);
CpvExtern(int, _ccd_numchecks);
CpvExtern(int, _ccd_heaplen);
Expand Down

0 comments on commit 9790de3

Please sign in to comment.