Ignore:
Timestamp:
Mar 15, 2014, 11:06:03 PM (11 years ago)
Author:
Darin Adler
Message:

Try to fix EFL build.

  • wtf/ThreadingPthreads.cpp: (WTF::changeThreadPriority): Code in this function was setting the priority of the current thread instead of the passed-in thread. That was triggering an unused variable warning in the compiler used to build for EFL. Fixed by using the thread handle instead of pthread_self.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/wtf/ThreadingPthreads.cpp

    r165687 r165691  
    211211
    212212    {
    213         // We don't want to lock across the call to join, since that can block our thread and cause deadlock.
    214213        MutexLocker locker(threadMapMutex());
    215214        pthreadHandle = pthreadHandleForIdentifierWithLockAlreadyHeld(threadID);
     
    220219    struct sched_param param;
    221220
    222     if (pthread_getschedparam(pthread_self(), &policy, &param))
     221    if (pthread_getschedparam(pthreadHandle, &policy, &param))
    223222        return;
    224223
    225224    param.sched_priority += delta;
    226225
    227     pthread_setschedparam(pthread_self(), policy, &param);
     226    pthread_setschedparam(pthreadHandle, policy, &param);
    228227}
    229228   
Note: See TracChangeset for help on using the changeset viewer.