Location: Symbol Reference > Classes > TJwJobObjectSessionList Class > TJwJobObjectSessionList Properties > TJwJobObjectSessionList.Lock Property
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwJobObjectSessionList.Lock Property
Pascal
property Lock: TMultiReadExclusiveWriteSynchronizer;

Lock returns the internal thread syncronisation object. It can be used to avoid problems with several threads. It should be used for property JobObject because calls to this property may become invalid during processing.

    Job.Lock.BeginWrite;
    try
      do sth with Job.JobObject[x]
    finally
      Job.Lock.EndWrite;
    end;
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!