这篇教程C++ GT_1trace函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GT_1trace函数的典型用法代码示例。如果您正苦于以下问题:C++ GT_1trace函数的具体用法?C++ GT_1trace怎么用?C++ GT_1trace使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GT_1trace函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: GateSpinlock_enter/*! * @brief Function to enter a Gate Spinlock. * * @param handle Handle to previously created gate Spinlock instance. * * @sa GateSpinlock_leave */UInt32GateSpinlock_enter (GateSpinlock_Handle handle){ UInt32 key = 0x0; GT_1trace (curTrace, GT_ENTER, "GateSpinlock_enter", handle); GT_assert (curTrace, (handle != NULL));#if !defined(SYSLINK_BUILD_OPTIMIZE) if (handle == NULL) { GT_setFailureReason (curTrace, GT_4CLASS, "GateSpinlock_enter", GateSpinlock_E_INVALIDARG, "Handle passed is invalid!"); } else {#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */ key = OsalSpinlock_enter ((OsalSpinlock_Handle) handle->sHandle);#if !defined(SYSLINK_BUILD_OPTIMIZE) }#endif /* if !defined(SYSLINK_BUILD_OPTIMIZE) */ GT_1trace (curTrace, GT_LEAVE, "GateSpinlock_enter", key); /*! @retval Flags Operation successful */ return key;}
开发者ID:zaporozhets,项目名称:ti_ezsdk_tools,代码行数:36,
示例2: OsalEvent_delete/*! * @brief Closes the handle corresponding to an event. It also frees the * resources allocated, if any, during call to OpenEvent () * * @param allocated event object handle. * @sa OsalEvent_delete */Int OsalEvent_delete (OsalEvent_Handle handle){ Int status = OSALEVENT_SUCCESS ; OsalEvent_Object* event = (OsalEvent_Object*) handle; GT_1trace (curTrace, GT_ENTER,"OsalEvent_close",event ); GT_assert (curTrace, (NULL != event) ); status = OsalSpinlock_delete (&(event->lock)); if (status >= 0) { event->signature = 0; }#if !defined(SYSLINK_BUILD_OPTIMIZE) else { status = OSALEVENT_E_SPINLOCK; GT_setFailureReason(curTrace, GT_4CLASS, "OsalEvent_close",OSALEVENT_E_SPINLOCK, "SpinLock Delete failed"); }#endif /* #if !defined(SYSLINK_BUILD_OPTIMIZE) */ GT_1trace (curTrace, GT_LEAVE,"Event_Close",status ); /*[email C++ GT_ASSERT函数代码示例 C++ GTS_OBJECT函数代码示例
|