此函数将返回队列的"大小",即已排入队列的项目数。
ds_queue_size(id);
Real
if (!ds_queue_empty(control_queue)){ num = ds_queue_size(control_queue);}
上述代码检查DS队列以查看其是否为空,如果不为空,则获取其包含的项目数,并将该值存储在变量中。