WebNov 3, 2011 · The following example shows how to use the LockList and UnlockList methods to access a thread-safe version of a TList object. Code. type TForm1 = class … The reason your code is not thread-safe is that it falls short of protecting all your data from shared access. This is a common misunderstanding in multi-threaded development: "I just need to wrap certain operations with locks and all will be fine." The point is, if your list is shared, you are: 1. Sharing the … See more If you want to write thread-safe code the onus is on youto: 1. Understand the data access paths. 2. Minimise sharing between threads (by far the best bang for … See more I indicated earlier that your locking technique only "might be suitable for your current requirements" because I do not believe you have really given an … See more
编写NT服务程序遇到的麻烦! ( 积分: 100 ) WeDelphi Forum
WebDec 7, 2010 · Re:Do are TStringList.Add and TStringList.Delete methods threadsafe? Hi! Thread safety in general always lowers the speed of the code. There are some parts of … WebALogFileList: TStringList; begin if Assigned(fMain.frmMain) and (bForce or gLogWindow) then begin if bForce and (not frmMain.seLogWindow.Visible) then begin if … solid rock christian fellowship crescent city
TStringList-TStrings Tutorial - Free Pascal wiki
http://wedelphi.com/t/220990/ WebTThreadStringList is a simple wrapper for TStringList. This makes it possible to access a StringList from different threads without any conflicts. Most functions and properties are … WebDouble Commander is a free cross platform open source file manager with two panels side by side. - doublecmd/uShowMsg.pas at master · doublecmd/doublecmd solid rock church havercroft