Skip to content

Commit 9743ca4

Browse files
committed
Fixing graph constructor to address error when certain features are not enabled
1 parent 6dc372f commit 9743ca4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

framework/include/vx_graph.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ class Graph : public Reference
226226
/*! \brief [hidden] If non-NULL, the parent graph, for scope handling. */
227227
vx_graph parentGraph;
228228
/*! \brief The array of all delays in this graph */
229-
vx_delay delays[VX_INT_MAX_REF];
230-
/*! \brief The graph scheduling mode */
231-
vx_graph_schedule_mode_type_e scheduleMode;
229+
vx_delay delays[VX_INT_MAX_REF];
232230
#ifdef OPENVX_USE_PIPELINING
233231
/*! \brief The number of enqueable parameters */
234232
vx_uint32 numEnqueableParams;
@@ -245,6 +243,8 @@ class Graph : public Reference
245243
/*! \brief The thread used for streaming */
246244
vx_thread streamingThread;
247245
#endif
246+
/*! \brief The graph scheduling mode */
247+
vx_graph_schedule_mode_type_e scheduleMode;
248248
};
249249

250250
#endif /* VX_GRAPH_H */

framework/src/vx_graph.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ Graph::Graph(vx_context context, vx_reference scope)
246246
shouldSerialize(vx_false_e),
247247
parentGraph(nullptr),
248248
delays(),
249-
scheduleMode(VX_GRAPH_SCHEDULE_MODE_NORMAL),
250249
#ifdef OPENVX_USE_PIPELINING
251250
numEnqueableParams(0),
252251
scheduleCount(0),
@@ -255,8 +254,9 @@ Graph::Graph(vx_context context, vx_reference scope)
255254
isStreamingEnabled(vx_false_e),
256255
isStreaming(vx_false_e),
257256
triggerNodeIndex(0),
258-
streamingThread()
257+
streamingThread(),
259258
#endif /* OPENVX_USE_STREAMING */
259+
scheduleMode(VX_GRAPH_SCHEDULE_MODE_NORMAL)
260260
{
261261
}
262262

0 commit comments

Comments
 (0)