<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:14 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-993] Compile error on windows</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-993</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;error C2664: &apos;CreateThread&apos; : cannot convert parameter 3 from &apos;void *&apos; to &apos;LPTHREAD_START_ROUTINE&apos;&lt;br/&gt;
mongo-c-driver\src\mongoc\mongoc-thread-private.h	80&lt;/p&gt;


&lt;p&gt;WinApi CreateThread() expects pointer to function that returns DWORD, but linux system cal pthread_create expects pointer to function that returns void *&lt;/p&gt;</description>
                <environment>Windows, msvs 2010</environment>
        <key id="239069">CDRIVER-993</key>
            <summary>Compile error on windows</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="alexeyvo">Alex</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Nov 2015 16:15:37 +0000</created>
                <updated>Tue, 8 Dec 2015 02:32:38 +0000</updated>
                            <resolved>Fri, 20 Nov 2015 20:34:07 +0000</resolved>
                                    <version>1.2.1</version>
                                    <fixVersion>1.3.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1094685" author="xgen-internal-githook" created="Fri, 20 Nov 2015 20:42:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-993&quot; title=&quot;Compile error on windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-993&quot;&gt;&lt;del&gt;CDRIVER-993&lt;/del&gt;&lt;/a&gt; fix cast in CreateThread call&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/50f977fc2dbd34bcea7591cd273738bd5bf9624a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/50f977fc2dbd34bcea7591cd273738bd5bf9624a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1087745" author="alexeyvo" created="Fri, 13 Nov 2015 13:31:11 +0000"  >&lt;p&gt;Visual studio uses c++ compiler mode for .cpp files and it seems like c++ language have more strict rules of casting, this is why error occurs. void* and DWORD return value types have different sizes so I&apos;m not sure this cast is safe.&lt;/p&gt;</comment>
                            <comment id="1087721" author="jesse" created="Fri, 13 Nov 2015 13:02:11 +0000"  >&lt;p&gt;Thanks, that &lt;b&gt;is&lt;/b&gt; useful information. Until we dig a little further, I&apos;m not sure why it matters how you include the driver&apos;s headers. Regardless, it seems like we should be casting the function to LPTHREAD_START_ROUTINE, not void *, in the win32 code.&lt;/p&gt;</comment>
                            <comment id="1087631" author="alexeyvo" created="Fri, 13 Nov 2015 09:12:24 +0000"  >&lt;p&gt;Important note: this error occurs only when using private header in .cpp file(not .c):&lt;/p&gt;

&lt;p&gt;// my_src.cpp&lt;br/&gt;
#include &amp;lt;mongoc-client-private.h&amp;gt; // includes mongoc-thread-private.h&lt;/p&gt;</comment>
                            <comment id="1086830" author="jesse" created="Thu, 12 Nov 2015 16:49:20 +0000"  >&lt;p&gt;Thanks for the report, we&apos;ll check it out.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="204837">CDRIVER-674</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsech3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>