- /* handling only output-status as sync */
- if (cb_base->type == TDM_THREAD_CB_OUTPUT_STATUS) {
- TDM_RETURN_VAL_IF_FAIL(cb_base->sync == 1, TDM_ERROR_INVALID_PARAMETER);
- } else {
- TDM_RETURN_VAL_IF_FAIL(cb_base->sync == 0, TDM_ERROR_INVALID_PARAMETER);
- }
+ if (tdm_debug_module & TDM_DEBUG_THREAD)
+ TDM_INFO("'%s' thread_cb (sync:%d, propagation:%d) ------",
+ tdm_cb_type_str(cb_base->type), cb_base->sync, propagation);
+
+ /* handling only output-status as sync. below logic can't handle two sync-type events */
+ if (cb_base->type == TDM_THREAD_CB_OUTPUT_STATUS)
+ assert(cb_base->sync == 1);
+ else
+ assert(cb_base->sync == 0);