This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Semaphore_pend 函数中,第二个参数 timeout时间单位是什么?是秒还是?系统SYS/BIOS 6.35.1.29

Semaphore_pend  函数中,第二个参数 timeout时间单位是什么?是秒还是?  系统SYS/BIOS 6.35.1.29

需求:想使用 Semaphore_pend  函数 等待一个 信号量2秒,需要设置 第二个参数timeout 为多少?(即timeout参数的单位不清楚)

如下:

Semaphore_pend  (sem, 2);??  等待2s?

还是?