This seems to be a simple task, I just don't know where to start using OmniThreadLibrary:
I am creating a task that does some processing in the background. The results are stored in the fields of the task class and are constantly filled with new values.
Now the main thread wants to read these fields and display their values ββfrom time to time.Therefore, he needs to access these fields and make sure that they are not recorded at these moments (synchronization).
How can this be done using OmniThreadLibrary?
/ OTL, , . (, , .)
mghie - ( ) ( ) . - :
sharedData := TSharedData.Create; task := CreateTask(worker).SetParameter('shared', sharedData).Run;
:
sharedData := Task.Param['shared'].AsObject as TSharedData;
- " " , UpdateNow. , . , , , .
OTL 23, . SetParameter() , Comm . , .
SetParameter()
Comm
Edit:
push-, pull, , , : , , . , GUI (), SetParameter(). , , , , , , , , - reset.
Source: https://habr.com/ru/post/1784764/More articles:Storing certificate chains in the application key chain - iosRails 3, changing a field in a model from string to datetime - ruby ββ| fooobar.comGotFocus event forms do not seem to fire - access-vbaCommon JPA field - javaCreate a directory for entries in MS Access 2007 - ms-accessThe generated signed X.509 client certificate is not valid (no certificate chain for its CA) - c #Sending an image using an HttpListener that works only for some images - c #How to start automatic testing of a large application? - databaseHow to read the Bitbucket Wiki as RSS? - bitbucketThe Oracle stack trace line number does not match the source code! - oracleAll Articles