Article View: borland.public.cppbuilder.nativeapi
Article #778threads and critical sections
From: mataus
Date: Wed, 09 Jan 2008 13:56
Date: Wed, 09 Jan 2008 13:56
10 lines
1135 bytes
1135 bytes
Hello all - and good new year. I have a question about threads and Critical Sections. I need my main thread to tell another thread of some state change. This is shows with an integer or boolean in the second thread. Must i use Critical Section when updating or is it safe to change an integer value? Many thanks mataus
Technical Details
Message-ID:
<4784d07b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5d08ceba3672bae6,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "mataus" <mataus@gmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: threads and critical sections Date: Wed, 9 Jan 2008 13:56:39 -0000 Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 NNTP-Posting-Host: 89.241.140.200 Message-ID: <4784d07b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1199886459 89.241.140.200 (9 Jan 2008 05:47:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail