Changeset 120dac7 for owl.c


Ignore:
Timestamp:
Aug 8, 2013, 2:38:50 PM (8 years ago)
Author:
Edward Z. Yang <ezyang@mit.edu>
Branches:
master
Children:
ecd4edf
Parents:
a38becd
git-author:
Jason Gross <jgross@mit.edu> (07/21/11 18:17:41)
git-committer:
Edward Z. Yang <ezyang@mit.edu> (08/08/13 14:38:50)
Message:
Added a hook for wakeup/user input.

I wanted to add a hook that got called on all user-input, but any
non-trivial use of that hook incurred too much overhead (about 7 ms per
paragraph for entry into perl, and another 100 ms or so per paragraph
for execution of the hook; tests run on pasting lorem ipusm, on
linerva).

This hook is called at most once a second (approximately).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r499224d r120dac7  
    289289
    290290  owl_global_set_lastinputtime(&g, time(NULL));
     291  owl_global_wakeup(&g);
    291292  ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
    292293  if (ret!=0 && ret!=1) {
Note: See TracChangeset for help on using the changeset viewer.