🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2311

Re: VC++ CSemaphore equivalent?

#2311
From: Jonathan Benedicto
Date: Mon, 12 Mar 2007 17:56
29 lines
1714 bytes
Robert G. Hoover wrote:
>                // set semiphore
>                busy = true;

What is the semaphore used for?


>                // grab video frame(s) from camera
>                Grab(live_grabbing_count);

What does Grab do?


>                // process image data
>                Process();

What does Process do?


>                // display current image on screen
>                Display();

What does Display do?

I asked these questions because if the code inside any of those 3 functions 
is not thread-safe, a multi-core processor will cause your application to 
behave erratically.

Jon 
Technical Details
Message-ID: <45f59433$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45f57403@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,411b13b57e2ea81a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <invalid@nobody.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45f57403@newsgroups.borland.com>
In-Reply-To: <45f57403@newsgroups.borland.com>
Subject: Re: VC++ CSemaphore equivalent?
Date: Mon, 12 Mar 2007 13:56:36 -0400
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain;
 format=flowed;
 charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
NNTP-Posting-Host: 74.115.18.89
Message-ID: <45f59433$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173722163 74.115.18.89 (12 Mar 2007 10:56:03 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail