Warning: Can't synchronize with the repository (Unsupported version control system "svn": "/usr/lib/libsvn_client-1.so.0: undefined symbol: svn_mergeinfo__filter_catalog_by_ranges" ). Look in the Trac log for more information.

Ticket #84: [Portaudio] CreateThread vs. _beginthreadex in WMME.2.eml

File [Portaudio] CreateThread vs. _beginthreadex in WMME.2.eml, 5.4 KB (added by gordon_gidluck, 3 months ago)
Line 
1X-Account-Key: account2
2X-UIDL: <603740-2008-0930-123226-13658@ispmxmss03.windstream.net>
3X-Mozilla-Status: 0013
4X-Mozilla-Status2: 00000000
5Return-Path: <portaudio-bounces@techweb.rfa.org>
6Received: from ispmxaamta07-gx.windstream.net ([66.208.60.24])
7          by ispmxmta12-srv.windstream.net with ESMTP
8          id <20080930173226.ZSRA9353.ispmxmta12-srv.windstream.net@ispmxaamta07-gx.windstream.net>
9          for <gidluck@alltel.net>; Tue, 30 Sep 2008 12:32:26 -0500
10Received: from techweb.rfa.org ([66.208.60.24])
11          by ispmxaamta07-gx.windstream.net with ESMTP
12          id <20080930173226.QVYQ8401.ispmxaamta07-gx.windstream.net@techweb.rfa.org>
13          for <gidluck@alltel.net>; Tue, 30 Sep 2008 12:32:26 -0500
14Received: from techweb.rfa.org (localhost.localdomain [127.0.0.1])
15        by techweb.rfa.org (Postfix) with ESMTP id 0D4ECD6C88;
16        Tue, 30 Sep 2008 13:31:55 -0400 (EDT)
17Delivered-To: portaudio@techweb.rfa.org
18Received: from orm.enotty.net (orm.enotty.net [217.155.224.221])
19        by techweb.rfa.org (Postfix) with ESMTP id 0A60FD6E14
20        for <portaudio@techweb.rfa.org>; Tue, 30 Sep 2008 13:31:28 -0400 (EDT)
21Received: from obsidian.enotty.net ([217.155.224.220])
22        by orm.enotty.net with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
23        (Exim 4.63) (envelope-from <sb-lst@enotty.net>)
24        id 1Kkj3X-0001RN-5g; Tue, 30 Sep 2008 18:30:39 +0100
25Received: from localhost ([127.0.0.1] helo=obsidian.enotty.net)
26        by obsidian.enotty.net with esmtp (Exim 4.69)
27        (envelope-from <sb-lst@enotty.net>)
28        id 1Kkj3O-0007UB-1F; Tue, 30 Sep 2008 18:30:30 +0100
29Date: Tue, 30 Sep 2008 18:30:30 +0100
30Message-ID: <87d4ilv8w9.wl@obsidian.enotty.net>
31From: Stelios Bounanos <sb-lst@enotty.net>
32To: portaudio@techweb.rfa.org
33In-Reply-To: <48CD34F7.60900@alltel.net>
34References: <48AEBD7D.9030802@sygyt.com>
35        <010501c90661$30e3a730$0b00a8c0@rossmacbook>
36        <48CD34F7.60900@alltel.net>
37User-Agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/23.0.60.1 (Debian)
38X-Face: _>CZ{PP8LMzNr2bB6(]k5WpkR;
39        1K_~Um'nJq#FZq8,c$sf\/z%Ln4v7X2k8<.jJEPTnq!#N
40        SIK)-G%n<9&>#'o(Q7otm9r*UTfdZKu
41X-Attribution: sb
42X-PGP-Key: http://enotty.net/sb-gpg-pub.asc
43MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
44X-rfa-techweb-MailScanner: Found to be clean, Found to be clean
45X-rfa-techweb-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
46        score=-3.243, required 6, autolearn=not spam, AWL -0.64,
47        BAYES_00 -2.60, SPF_HELO_PASS -0.00), not spam, SpamAssassin (cached,
48        score=-3.163, required 6, autolearn=not spam, AWL -0.56,
49        BAYES_00 -2.60, SPF_HELO_PASS -0.00)
50Cc: Gordon Gidluck <gidluck@alltel.net>
51Subject: Re: [Portaudio] CreateThread vs. _beginthreadex in WMME
52X-BeenThere: portaudio@techweb.rfa.org
53X-Mailman-Version: 2.1.9
54Precedence: list
55List-Id: Portaudio Mailing List <portaudio.techweb.rfa.org>
56List-Unsubscribe: <http://techweb.rfa.org/mailman/listinfo/portaudio>,
57        <mailto:portaudio-request@techweb.rfa.org?subject=unsubscribe>
58List-Archive: <http://techweb.rfa.org/pipermail/portaudio>
59List-Post: <mailto:portaudio@techweb.rfa.org>
60List-Help: <mailto:portaudio-request@techweb.rfa.org?subject=help>
61List-Subscribe: <http://techweb.rfa.org/mailman/listinfo/portaudio>,
62        <mailto:portaudio-request@techweb.rfa.org?subject=subscribe>
63Content-Type: text/plain; charset="us-ascii"
64Content-Transfer-Encoding: 7bit
65Sender: portaudio-bounces@techweb.rfa.org
66Errors-To: portaudio-bounces@techweb.rfa.org
67X-rfa-techweb-MailScanner-From: portaudio-bounces@techweb.rfa.org
68X-Cloudmark-Analysis: v=1.0 c=1 a=FzLEsc44_lMA:10 a=4ahWgtOr4jAA:10 a=oOE5mZu8+yHL2XNsYUwqZA==:17 a=w_pzkKWiAAAA:8 a=BDktQ--kAAAA:8 a=3DJzGCkn4tyJkKXHR2oA:9 a=hkIfk_z7bEFtSdRcHEkA:7 a=vS3pq78Y3qh3Uce41FnwMSnsSK0A:4 a=_KtGf5bnNxAA:10 a=50e4U0PicR4A:10
69
70Hi,
71
72>>>>> On Sun, 14 Sep 2008 10:59:51 -0500, Gordon Gidluck <gidluck@alltel.net> said:
73
74> Ross,
75> Changes are committed in SVN for pa_win_wmme.c and pa_win_wdmks.c .
76> There is a small issue with data types with wasapi and I have emailed
77> David Viens hoping that he can look into that.
78
79> The V19 code builds on Visual Studio 2008. I just had to download ASIO
80> code from Steinberg and also get a DirectX SDK from Microsoft for the build.
81> VS2008 converts two files (.sln and .vcproj) when importing the Visual
82> Studio 2005 project.
83
84SVN changeset 1388 ("change CreateThread to _beginthreadex") breaks
85compilation on cygwin:
86
87% ./configure --prefix=/usr/local/portaudio --enable-static --disable-shared
88% make
89% make install
90% cd test
91% gcc -o pa_devs.exe pa_devs.c $(pkg-config --cflags --libs portaudio-2.0)
92/usr/local/portaudio/lib/libportaudio.a(pa_win_wmme.o): In function `StartStream':
93/usr/local/src/portaudio/trunk/src/hostapi/wmme/pa_win_wmme.c:3247: undefined reference to `__beginthreadex'
94collect2: ld returned 1 exit status
95
96It works with that changeset reverted.
97
98The _beginthreadex function is specific to Microsoft's toolchain:
99
100  http://www.cygwin.com/ml/cygwin/2005-01/msg00892.html
101
102The above thread, as well as the following email, also suggest that
103there is no memory leak associated with CreateThread on cygwin:
104
105  http://cygwin.com/ml/cygwin/2001-07/msg01176.html
106
107Since cygwin's gcc defines __GNUC__ and __CYGWIN__ it would be trivial
108to call _beginthreadex or CreateThread with a preprocessor conditional.
109
110
111Regards,
112Stelios.
113_______________________________________________
114Portaudio mailing list
115Portaudio@techweb.rfa.org
116http://techweb.rfa.org/mailman/listinfo/portaudio
117