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
This commit is contained in:
laurentgom 2009-03-02 22:39:07 +00:00
parent 125daf062f
commit f9e24c6ec5

View File

@ -40,7 +40,7 @@ namespace priv
ThreadImpl::ThreadImpl(Thread* Owner) : ThreadImpl::ThreadImpl(Thread* Owner) :
myIsActive(true) myIsActive(true)
{ {
myIsActive = pthread_create(&myThread, NULL, &ThreadFunc, Owner) == 0; myIsActive = pthread_create(&myThread, NULL, &ThreadImpl::EntryPoint, Owner) == 0;
if (!myIsActive) if (!myIsActive)
std::cerr << "Failed to create thread" << std::endl; std::cerr << "Failed to create thread" << std::endl;
@ -73,7 +73,7 @@ void ThreadImpl::Terminate()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Global entry point for all threads /// Global entry point for all threads
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void* ThreadFunc(void* UserData) void* ThreadImpl::EntryPoint(void* UserData)
{ {
// The Thread instance is stored in the user data // The Thread instance is stored in the user data
Thread* Owner = static_cast<Thread*>(UserData); Thread* Owner = static_cast<Thread*>(UserData);