- _tbm_sync_mutex_lock();
-
- /* check the tbm_sync capability */
- ret = _tbm_sync_check_capability();;
- if (ret != TBM_SYNC_ERROR_NONE)
- goto done;
-
- /* TODO: sync_timeline_increase_count */
-
-done:
- _tbm_sync_mutex_unlock();
-
- return ret;
-}
-
-unsigned int
-tbm_sync_timeline_get_cur_count(tbm_sync_timeline_h timeline, tbm_sync_error_e *error)
-{
- tbm_sync_error_e ret = TBM_SYNC_ERROR_NONE;
- unsigned int cur_count = 0;
-
- _tbm_sync_mutex_lock();
-
- /* check the tbm_sync capability */
- ret = _tbm_sync_check_capability();;
- if (ret != TBM_SYNC_ERROR_NONE)
- goto done;
-
- /* TODO: sync_timeline_get_cur_count */
-
-done:
- if (error)
- *error = ret;
-
- _tbm_sync_mutex_unlock();
-
- return cur_count;
-}
-
-tbm_sync_fence_h
-tbm_sync_fence_create(tbm_sync_timeline_h timeline, const char *name, unsigned int count_val, tbm_sync_error_e *error)
-{
- tbm_sync_error_e ret = TBM_SYNC_ERROR_NONE;
- tbm_sync_fence_h fence = NULL;
-
- _tbm_sync_mutex_lock();
-
- /* check the tbm_sync capability */
- ret = _tbm_sync_check_capability();;
- if (ret != TBM_SYNC_ERROR_NONE)
- goto done;
-
- /* TODO: sync_fence_create */
-
-done:
- if (error)
- *error = ret;
-
- _tbm_sync_mutex_unlock();
-
- return fence;
-}
-
-tbm_sync_error_e
-tbm_sync_fence_destroy(tbm_sync_fence_h fence)
-{
- tbm_sync_error_e ret = TBM_SYNC_ERROR_NONE;
-
- _tbm_sync_mutex_lock();
-
- /* check the tbm_sync capability */
- ret = _tbm_sync_check_capability();;
- if (ret != TBM_SYNC_ERROR_NONE)
- goto done;
-
- /* TODO: sync_fence_destroy */
-
-done:
- _tbm_sync_mutex_unlock();