Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use idle callback when we have pending code
While difficult to find hard documentation, I have seen a few different places stating that "g_idle_add" is threadsafe. Operating on this assumption, we add one idle callbacks for every piece of code we need to run, and no more. This fixes #5 and drops our idle CPU usage from 100% down to 0%
- Loading branch information