From f9e24c6ec584e468760d359e70af7dbc13f72175 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Mon, 2 Mar 2009 22:39:07 +0000 Subject: [PATCH] Fixed compile errors in sfml-system on Linux git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1038 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/System/Unix/ThreadImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/System/Unix/ThreadImpl.cpp b/src/SFML/System/Unix/ThreadImpl.cpp index 10ec8e2b8..70c1dbef1 100644 --- a/src/SFML/System/Unix/ThreadImpl.cpp +++ b/src/SFML/System/Unix/ThreadImpl.cpp @@ -40,7 +40,7 @@ namespace priv ThreadImpl::ThreadImpl(Thread* Owner) : myIsActive(true) { - myIsActive = pthread_create(&myThread, NULL, &ThreadFunc, Owner) == 0; + myIsActive = pthread_create(&myThread, NULL, &ThreadImpl::EntryPoint, Owner) == 0; if (!myIsActive) std::cerr << "Failed to create thread" << std::endl; @@ -73,7 +73,7 @@ void ThreadImpl::Terminate() //////////////////////////////////////////////////////////// /// Global entry point for all threads //////////////////////////////////////////////////////////// -void* ThreadFunc(void* UserData) +void* ThreadImpl::EntryPoint(void* UserData) { // The Thread instance is stored in the user data Thread* Owner = static_cast(UserData);