From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1742659b6aa943fb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Martin Dowie" Newsgroups: comp.lang.ada References: <1132913111.023558.255590@g14g2000cwa.googlegroups.com> Subject: Re: Tasking and wxWidgets Date: Fri, 25 Nov 2005 10:53:41 -0000 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <4386eb3d$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 25 Nov 2005 10:55:05 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1132916105 news.gradwell.net 38043 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Path: g2news1.google.com!news3.google.com!news2.volia.net!news.germany.com!multikabel.net!feed20.multikabel.net!surfnet.nl!surfnet.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!zen.net.uk!dedekind.zen.co.uk!news.amigo.co.uk!news-peer-lilac.gradwell.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:6611 Date: 2005-11-25T10:55:05+00:00 List-Id: Lucretia wrote: > 2) I could also go the other way and inside the > wx.Base.Object.Object_Type (wxObject) provide a mutex object, such > that every call in wxAda would lock (on entry) and unlock (on exit) > thus providing thread safety if that particular object were accessed > via multiple tasks. The overhead of constructing/destructing a mutex > locker object, locking/unlocking the mutex object on every call would > be rather high and thus, would most probably slow the application > down to a crawl (although, not tested). Use of inlining might make > this nicer? Is the different between a response in 0.1 seconds and 0.15 seconds particularly noticable with a GUI? I'm guessing at the actual times but surely they are going to be very small (to the human eye), no?... Could you provide the locking as an option at compile time? I.e. have 2 packages that providing locking but one is "begin null end;" (or "is null;" for Ada2005, yes?) for everything. Cheers -- Martin