IdleRegister cleanups

This commit is contained in:
Flössie
2017-05-02 18:45:23 +02:00
parent 7553d86b11
commit bc33b51093
2 changed files with 9 additions and 16 deletions

View File

@@ -54,7 +54,13 @@ public:
void destroy();
private:
std::map<void*, guint> ids;
struct DataWrapper {
IdleRegister* const self;
GSourceFunc function;
gpointer data;
};
std::map<const DataWrapper*, guint> ids;
MyMutex mutex;
};