Re: [fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-19 Thread Brian Winfrey
Polling where the list size is highly dynamic you will need protect it.  I think FPC has thread safe list objects too. Yes it does, Classes.TThreadList I think. I thought it was a conatiner for threads, but it is a safe list. ___ fpc-pascal maillist

[fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-15 Thread Frank Church
I am writing an app involving 2 threads, and a timer loop in the UI. The first thread monitors network events, logs them into a database, appends them to a list. The second thread monitors the list, checks the events and updates a data structure, which is used by a timer loop in the main

Re: [fpc-pascal] What are the issues involved in threads sharing variables?

2010-10-15 Thread Andrew Brunner
On Fri, Oct 15, 2010 at 5:20 AM, Frank Church vfcli...@gmail.com wrote: I am writing an app involving 2 threads, and a timer loop in the UI. The first thread monitors network events, logs them into a database, appends them to a list. Any time I see append to a list I always think