Article View: borland.public.cppbuilder.nativeapi
Article #13536Re: Thread synchronisation - Question
From: Remy Lebeau (TeamB)
Date: Wed, 08 Oct 2003 17:50
Date: Wed, 08 Oct 2003 17:50
28 lines
1813 bytes
1813 bytes
"Matt Heling" <heli@_REMOVE_THIS_heling.de> wrote in message news:3f84329c@newsgroups.borland.com... > Is there any difference in "performance" (speed) of these > two components (TQueue & TStack). You said you wanted a FIFO list. TQueue is FIFO, whereas TStack is LIFO instead. > I could imagine, that TQueue works with InnerList->Add() Actually, it uses Insert(0) instead. > and the Pop() method returns InnerList->Items[0] Actually, it pops Items[Count-1] instead. > while TStack uses InnerList->Add() Correct. > but InnerList->Items[(InnerList->Count)-1] for Pop(). Correct. Gambit
Technical Details
Message-ID:
<3f844de9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> <3f818e8c@newsgroups.borland.com> <3f8198e0$1@newsgroups.borland.com> <3f82de8b@newsgroups.borland.com> <3f82f6cd$1@newsgroups.borland.com> <3f84329c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,20b65b563d927a2d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-08 11:03:11 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f704989@newsgroups.borland.com> <3f750c0d$2@newsgroups.borland.com> <3f818e8c@newsgroups.borland.com> <3f8198e0$1@newsgroups.borland.com> <3f82de8b@newsgroups.borland.com> <3f82f6cd$1@newsgroups.borland.com> <3f84329c@newsgroups.borland.com> Subject: Re: Thread synchronisation - Question Date: Wed, 8 Oct 2003 10:50:09 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.75 Message-ID: <3f844de9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065635305 67.22.137.75 (8 Oct 2003 10:48:25 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail