@@ -38,7 +38,7 @@ typedef struct {
odp_schedule_sync_t (*queue_sched_type)(odp_queue_t queue);
odp_schedule_prio_t (*queue_sched_prio)(odp_queue_t queue);
odp_schedule_group_t (*queue_sched_group)(odp_queue_t queue);
- int (*queue_lock_count)(odp_queue_t queue);
+ uint32_t (*queue_lock_count)(odp_queue_t queue);
uint64_t (*queue_to_u64)(odp_queue_t hdl);
void (*queue_param_init)(odp_queue_param_t *param);
int (*queue_info)(odp_queue_t queue, odp_queue_info_t *info);
@@ -175,12 +175,12 @@ static odp_schedule_group_t queue_sched_group(odp_queue_t handle)
return handle_to_qentry(handle)->s.param.sched.group;
}
-static int queue_lock_count(odp_queue_t handle)
+static uint32_t queue_lock_count(odp_queue_t handle)
{
queue_entry_t *queue = handle_to_qentry(handle);
return queue->s.param.sched.sync == ODP_SCHED_SYNC_ORDERED ?
- (int)queue->s.param.sched.lock_count : -1;
+ queue->s.param.sched.lock_count : 0;
}
static odp_queue_t queue_create(const char *name,
@@ -92,7 +92,7 @@ odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue)
return queue_api->queue_sched_group(queue);
}
-int odp_queue_lock_count(odp_queue_t queue)
+uint32_t odp_queue_lock_count(odp_queue_t queue)
{
return queue_api->queue_lock_count(queue);
}
@@ -333,12 +333,12 @@ static odp_schedule_group_t queue_sched_group(odp_queue_t handle)
return qentry_from_int(queue_from_ext(handle))->s.param.sched.group;
}
-static int queue_lock_count(odp_queue_t handle)
+static uint32_t queue_lock_count(odp_queue_t handle)
{
queue_entry_t *queue = qentry_from_int(queue_from_ext(handle));
return queue->s.param.sched.sync == ODP_SCHED_SYNC_ORDERED ?
- (int)queue->s.param.sched.lock_count : -1;
+ queue->s.param.sched.lock_count : 0;
}
static odp_queue_t queue_create(const char *name,