谁能告诉我TThreadList的属性及用法。
var
G_NotReadBuf : TThreadList;
function GetModemDataStruct():pointer;
var
Mylist :TList;
begin
Result := nil;
Try
Mylist := G_NotReadBuf.LockList;
if Mylist.Count = 0 then
begin
G_NotReadBuf.UnlockList;
exit;
end;
result := Mylist.Items[0];
Mylist.Remove(result);
except
on aaa : Exception do Errorstr:=pchar('GetModemDataStruct');
end;
G_NotReadBuf.UnlockList;
end;
请问这个函数什么意思。。。。谁能帮帮我?、、、、、Mylist := G_NotReadBuf.LockList;这句又是什么意思啊。?
[解决办法]
Mylist := G_NotReadBuf.LockList; 取得(安全)线程列表
[解决办法]