| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) | 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Must be called from the main thread. | 41 // Must be called from the main thread. |
| 42 WTF_EXPORT void initializeMainThread(void (*)(MainThreadFunction, void*)); | 42 WTF_EXPORT void initializeMainThread(void (*)(MainThreadFunction, void*)); |
| 43 | 43 |
| 44 WTF_EXPORT bool isMainThread(); | 44 WTF_EXPORT bool isMainThread(); |
| 45 | 45 |
| 46 namespace internal { | 46 namespace internal { |
| 47 | 47 |
| 48 void callOnMainThread(MainThreadFunction*, void* context); | 48 void callOnMainThread(MainThreadFunction*, void* context); |
| 49 | 49 |
| 50 } // namespace internal | 50 } // namespace internal |
| 51 | 51 |
| 52 } // namespace WTF | 52 } // namespace WTF |
| 53 | 53 |
| 54 using WTF::isMainThread; | 54 using WTF::isMainThread; |
| 55 #endif // MainThread_h | 55 #endif // MainThread_h |
| OLD | NEW |