Overview
| Artifact ID: | e58a33c45c10f1450595132856de15f66b7c5395 |
|---|---|
| Ticket: | 674367ffffffffffffffffffffffffffffffffff
call for a function that is not thread safe |
| User & Date: | vasiljevic on 2003-01-27 15:25:51 |
Changes
- icomment:
Logged In: YES user_id=95086 This example will instruct the $TID thread to open the Test.tst file under lock. If you however want to both open and write to the file in atomic way, you should move the "puts $File" in the thread::eval block. Normally, your application will create some mutexes up front and store them in the shared variable. Those live a long as the app lives and are generally never destroyed. During runtime, threads come and go and they use the precreated mutexes for various sync tasks.
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"