Changeset 162355 in webkit
- Timestamp:
- Jan 20, 2014 9:25:38 AM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r162353 r162355 1 2014-01-20 Anders Carlsson <andersca@apple.com> 2 3 Remove an unused member variable 4 https://bugs.webkit.org/show_bug.cgi?id=127295 5 6 Reviewed by Antti Koivisto. 7 8 * wtf/MainThread.cpp: 9 (WTF::FunctionWithContext::FunctionWithContext): 10 (WTF::FunctionWithContext::operator == ): 11 (WTF::dispatchFunctionsFromMainThread): 12 1 13 2014-01-20 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WTF/wtf/MainThread.cpp
r162235 r162355 42 42 MainThreadFunction* function; 43 43 void* context; 44 ThreadCondition* syncFlag; 45 46 FunctionWithContext(MainThreadFunction* function = 0, void* context = 0, ThreadCondition* syncFlag = 0) 44 45 FunctionWithContext(MainThreadFunction* function = nullptr, void* context = nullptr) 47 46 : function(function) 48 47 , context(context) 49 , syncFlag(syncFlag) 50 { 48 { 51 49 } 52 50 bool operator == (const FunctionWithContext& o) 53 51 { 54 return function == o.function 55 && context == o.context 56 && syncFlag == o.syncFlag; 52 return function == o.function && context == o.context; 57 53 } 58 54 }; … … 166 162 167 163 invocation.function(invocation.context); 168 if (invocation.syncFlag) {169 MutexLocker locker(mainThreadFunctionQueueMutex());170 invocation.syncFlag->signal();171 }172 164 173 165 // If we are running accumulated functions for too long so UI may become unresponsive, we need to
Note: See TracChangeset
for help on using the changeset viewer.