removed Mutex from Win32, split POSIX entry() function into two

This commit is contained in:
Aleksandar Fabijanic
2008-04-11 10:15:43 +00:00
parent 01613f5cf6
commit 1867398d32
4 changed files with 46 additions and 20 deletions

View File

@@ -83,8 +83,6 @@ void ThreadImpl::setPriorityImpl(int prio)
void ThreadImpl::startImpl(Runnable& target)
{
Mutex::ScopedLock lock(_mutex);
if (isRunningImpl())
throw SystemException("thread already running");
@@ -96,8 +94,6 @@ void ThreadImpl::startImpl(Runnable& target)
void ThreadImpl::startImpl(Callback target, void* pData)
{
Mutex::ScopedLock lock(_mutex);
if (isRunningImpl())
throw SystemException("thread already running");