summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/Platform/WorkQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Platform/WorkQueue.h')
-rw-r--r--Source/WebKit2/Platform/WorkQueue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit2/Platform/WorkQueue.h b/Source/WebKit2/Platform/WorkQueue.h
index 99f77ae..74d6055 100644
--- a/Source/WebKit2/Platform/WorkQueue.h
+++ b/Source/WebKit2/Platform/WorkQueue.h
@@ -46,8 +46,10 @@
class QObject;
class QThread;
#elif PLATFORM(GTK)
+#include "PlatformProcessIdentifier.h"
typedef struct _GMainContext GMainContext;
typedef struct _GMainLoop GMainLoop;
+typedef gboolean (*GSourceFunc) (gpointer data);
#endif
class WorkQueue {
@@ -87,6 +89,7 @@ public:
#elif PLATFORM(GTK)
void registerEventSourceHandler(int, int, PassOwnPtr<WorkItem>);
void unregisterEventSourceHandler(int);
+ void scheduleWorkOnTermination(WebKit::PlatformProcessIdentifier, PassOwnPtr<WorkItem>);
#endif
private:
@@ -165,6 +168,7 @@ private:
#elif PLATFORM(GTK)
static void* startWorkQueueThread(WorkQueue*);
void workQueueThreadBody();
+ void scheduleWorkOnSource(GSource*, PassOwnPtr<WorkItem>, GSourceFunc);
ThreadIdentifier m_workQueueThread;
GMainContext* m_eventContext;