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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d05ccde5cefb836 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: Tasks and C/C++ code. Date: 1998/11/18 Message-ID: <87btm52jwl.fsf@zaphod.enst.fr>#1/1 X-Deja-AN: 413139456 References: <364702E5.F6987321@hiwaay.net> <729ndu$jfo$1@nnrp1.dejanews.com> <72b35b$pll$1@nnrp1.dejanews.com> Mail-Copies-To: sam@ada.eu.org X-Complaints-To: usenet@enst.enst.fr X-Trace: enst.enst.fr 911396792 18988 137.194.160.95 (18 Nov 1998 13:46:32 GMT) Organization: TELECOM Paris Mime-Version: 1.0 User-Agent: Gnus/5.07005 (Pterodactyl Gnus v0.50) XEmacs/21.2(beta3) (Aglaia) NNTP-Posting-Date: 18 Nov 1998 13:46:32 GMT Newsgroups: comp.lang.ada Date: 1998-11-18T13:46:32+00:00 List-Id: >>>>> "David" == dbotton writes: David> I think it would be practical to create a protected type that David> wrapped your C function to insure that it is not be run David> concurrently (if it isn't safe). If it's safe then just call it David> as you would any other Ada Procedure/Function. You can't do that for abitraries C functions: it must not contain any potentially blocking code. Sam -- Samuel Tardieu -- sam@ada.eu.org