Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3206

Fix Visual Studio build failure due 'pthread_self': identifier not found

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Library
    • Labels:
    • Environment:

      Visual Studio 2013 Update 5 RC

    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      Build fail of project lib\cpp\libthrift.vcxproj due to compile error

      1>c:\...\thrift\lib\cpp\src\thrift\transport\tsslsocket.cpp(69): error C3861: 'pthread_self': identifier not found
      

      The current Thrift code calls pthread_self() which is not available on Windows platform in current Thrift library dependency set.

      Herein I propose resolution by using native WINAPI equivalent GetCurrentThreadId() in case source is compiled when _WIN32 macro is defined.

        Attachments

        1. THRIFT-3206.patch
          0.5 kB
          Paweł Janicki

          Activity

            People

            • Assignee:
              roger Roger Meier
              Reporter:
              pjanicki Paweł Janicki

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment