diff options
author | Lubos Dolezel <lubos@dolezel.info> | 2015-07-07 21:34:02 +0200 |
---|---|---|
committer | Lubos Dolezel <lubos@dolezel.info> | 2015-07-07 21:34:28 +0200 |
commit | ea71ccfcfab52f74469231cab4e70552333b590a (patch) | |
tree | b5babc21c3a59216e88c41ebd464a666962a1c9a /src/userintf.h | |
parent | 415aa345125e48f5be1ee47296b00e49a587f2ae (diff) | |
download | twinkle-ea71ccfcfab52f74469231cab4e70552333b590a.tar twinkle-ea71ccfcfab52f74469231cab4e70552333b590a.tar.gz twinkle-ea71ccfcfab52f74469231cab4e70552333b590a.tar.lz twinkle-ea71ccfcfab52f74469231cab4e70552333b590a.tar.xz twinkle-ea71ccfcfab52f74469231cab4e70552333b590a.zip |
Move some possibly blocking ops into userintf.cpp event queue (#17)
Diffstat (limited to 'src/userintf.h')
-rw-r--r-- | src/userintf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/userintf.h b/src/userintf.h index fc45866..e9b5606 100644 --- a/src/userintf.h +++ b/src/userintf.h @@ -437,6 +437,9 @@ public: // Get all command names const list<string>& get_all_commands(void); + // Asynchronously run a function on this class' event queue + void run_on_event_queue(std::function<void()> fn); + }; void *process_events_main(void *arg); |