X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Rugxulo Newsgroups: comp.os.msdos.djgpp Subject: Re: 4.6.2 and std::thread Date: Wed, 21 Dec 2011 14:08:18 -0800 (PST) Organization: http://groups.google.com Lines: 40 Message-ID: <6e98f6e0-b559-48fd-9875-155d27e0df7b@x19g2000yqf.googlegroups.com> References: <2da49b70-1068-426c-acf3-8e6785db2da8 AT n22g2000prh DOT googlegroups DOT com> <4EF21D7E DOT 50704 AT iki DOT fi> NNTP-Posting-Host: 65.13.115.246 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1324505298 14934 127.0.0.1 (21 Dec 2011 22:08:18 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 21 Dec 2011 22:08:18 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: x19g2000yqf.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRAUELSC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.630.0 Safari/534.16,gzip(gfe) Bytes: 3169 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pBLMF1dx029802 Reply-To: djgpp AT delorie DOT com Hi, On Dec 21, 11:55 am, Andris Pavenis wrote: > On 12/21/2011 12:44 PM, jimm wrote:> is std::thread and all of its related stuff supported in 4.6.2?  this > > would be SOOO useful! > > > I was thinking of a multithreaded MIDI application... > > one thread for sending the MIDI codes to the usb-to-MIDI adapter, and > > one thread for the authoring app. > > I have never done USB before.  maybe I am in over my head.  haven't > > done packets in years, and this would be through the BIOS.  not even > > sure if this would be feasible. > > I do not think, that it will work for DJGPP. Related files were simply > not removed I don't think DJGPP has much help "upstream", maybe only a very little sympathy (or passive aggressive "POSIX only!" attitudes). Besides, G++ is ultra complicated, esp. trying to support a very new standard. In other words, don't get your hopes up. It's already hard enough keeping things working as they used to, so adding more stuff is even more difficult!! :-( FYI, traditionally "MS" DOS and clones (e.g. FreeDOS) don't support threading natively (though some other esoteric DOSes do, but they are either proprietary, expensive, or less well-supported in tools, but feel free to search: TSX, RDOS, Real/32, DR-DOS 7.03, etc). But there are workarounds (usually cooperative threads or similar), e.g. FSU Pthreads (used by DJGPP compile of p7zip 9.13). That, or something ultra simple like clwp, or maybe even SwsMtc, is probably your best bet. (GNU pth is buggy, but maybe it'll work for you with old libsocket or, more likely, with Watt-32.) http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/7zip/9.13/p7z913.zip http://www.keesmoerman.nl/misc/clwp.html http://www.softsystem.co.uk/products/swsmtc.htm http://na.mirror.garr.it/mirrors/djgpp/current/v2gnu/pth207s.zip