mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
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:
parent
125daf062f
commit
f9e24c6ec5
@ -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<Thread*>(UserData);
|
||||
|
Loading…
Reference in New Issue
Block a user