prg_mt_mutex_info_get()
摘要
获取 mutex 对象的信息。
语法
prg_mt_mutex_info_get (mutex_ptr, options_ptr, rank_ptr, locked_ptr, lock_id_ptr, description_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
mutex_ptr |
PrgT_Mutex * |
要查询的 mutex 对象。 |
options_ptr |
int * |
创建时指定的 options 值。 |
rank_ptr |
int * |
创建时指定的等级值。 |
locked_ptr |
int * |
若已锁定为 PRGC_TRUE,否则为 PRGC_FALSE。 |
lock_id_ptr |
int * |
若已锁定,为最后锁定该 mutex 的进程的 id。 |
description_ptr |
const char * |
创建时指定的描述字符串。 |
返回类型
PrgT_Compcode
mutex 有效时返回 PrgC_Compcode_Success,否则返回 PrgC_Compcode_Failure
头文件
prg_mt.h
详情
允许获取关于 mutex 对象的一组信息。