Skip to content

Commit

Permalink
Fix friend class declaration (dotnet#268)
Browse files Browse the repository at this point in the history
[ 27%] Building CXX object src/pal/src/CMakeFiles/coreclrpal.dir/arch/amd64/signalhandlerhelper.cpp.o
coreclr/src/pal/src/thread/thread.cpp:1613:1: error: ‘CorUnix::PAL_ERROR CorUnix::InternalSetThreadDescription(CorUnix::CPalThread*, HANDLE, PCWSTR)’ has not been declared within CorUnix [-Werror]
 CorUnix::InternalSetThreadDescription(
 ^~~~~~~
In file included from coreclr/src/pal/src/include/pal/dbgmsg.h:160:0,
                 from coreclr/src/pal/src/thread/thread.cpp:21:
coreclr/src/pal/src/include/pal/thread.hpp:204:13: note: only here as a friend
             InternalSetThreadDescription(
  • Loading branch information
franksinankaya authored and janvorli committed Nov 26, 2019
1 parent ffdb313 commit e6d8017
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/coreclr/src/pal/src/include/pal/thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ namespace CorUnix
HANDLE *phThread
);

PAL_ERROR
InternalSetThreadDescription(
CPalThread *,
HANDLE,
PCWSTR
);

PAL_ERROR
CreateThreadData(
CPalThread **ppThread
Expand Down

0 comments on commit e6d8017

Please sign in to comment.