Permalink
Switch branches/tags
Commits on Aug 4, 2015
  1. Merge pull request #18 from piernov/master

    Lua 5.3 compatibility
    committed Aug 4, 2015
Commits on Aug 2, 2015
  1. Lua 5.3 compatibility

    piernov committed Aug 2, 2015
Commits on May 12, 2013
  1. Remove test dependency on alien library, only define SIGPOLL, SIGPWR,…

    … and SIGSTKFLT if the plaform allows it.
    committed May 12, 2013
Commits on May 5, 2013
  1. Replace luaL_register() with luaL_setfuncs() and add 5.1 backwards

    compatibility layer.
    committed May 5, 2013
Commits on May 4, 2013
  1. Replace lua_setfenv() and lua_getfenv() with Lua 5.2

    lua_setuservalue() and lua_getuservalue() and add backwards
    compatibility shims for 5.1.
    committed May 4, 2013
  2. Replace abs_index() with Lua 5.2 lua_absindex() and add a backward

    compatibility define.  Fix issue with side-effect within assert().
    committed May 4, 2013
  3. update for lua 5.2

    Poggles committed with Apr 30, 2013
Commits on Jan 8, 2013
  1. Merge pull request #13 from lipp/master

    Added constants for signals, like ev.SIGHUP etc
    committed Jan 8, 2013
Commits on Nov 7, 2012
Commits on Nov 30, 2011
  1. Fix typo in README.

    committed Nov 30, 2011
  2. Add Ross Anderson's example.

    committed Nov 30, 2011
Commits on Oct 23, 2011
  1. Refactor out populate_child_status_table() function from

    child_getstatus() so we can avoid the dependency on sys/wait.h when
    trying to compile on win32.  Note that this means the status code
    table is always empty on windows, but it appears that libev 3.9 does
    not populate this rstatus field to begin with, so this should be fine.
    Brian Maher committed Oct 23, 2011
Commits on Mar 9, 2011
  1. Add support for stat watchers

    miGlanz committed Mar 9, 2011
Commits on Mar 7, 2011
  1. Add support for child watchers

    miGlanz committed Mar 7, 2011
  2. Use luaL_register instead of lua_createtable

    This way require 'ev' makes 'ev' available in the global namespace.
    miGlanz committed Mar 7, 2011
Commits on Nov 30, 2010
  1. Document and test the new getfd() functionality.

    Brian Maher committed Nov 30, 2010
  2. Added getfd method to io objects

    daurnimator committed with Brian Maher Nov 29, 2010
Commits on Oct 7, 2010
  1. Add test for timer again() method

    This tests a case fixed by the previous commit (cb2027f).
    bdowning committed with Oct 6, 2010
  2. lua-ev: Fix is_deamon behavior

    This fixes an error wherein calling loop_start_watcher with is_daemon ==
    -1 would result in a daemonized watcher if it was previously unregistered,
    instead of a non-daemonized watcher as documented in the comment (and
    makes sense).
    bdowning committed with Sep 15, 2010
  3. lua-ev: Simplify watcher auto-stop

    This removes special-purpose code and should make implementing ev_periodic
    and any other watcher types that auto-stop easier.
    bdowning committed with Sep 1, 2010
Commits on Sep 7, 2010
Commits on Sep 6, 2010
  1. Integrate Brian Downing's changes in, making the following

    adjustments:
    
     * Change the implementation of the "shadow" user data so that only
       users of this functionality pay for the extra overhead of a lua
       table for every watcher.
    
     * Simplify how a watcher is "checked" so that it simply looks for
       a magic key in the metatable to determine if it is of the right
       metatable.
    
     * Require libev 3.7 (print a warning if this version is not
       satisfied).  This version is required in order to set userdata on
       an event loop.
    
     * Instead of having a separate watcher metatable, simply mix-in the
       watcher metatable methods.
    
     * Add note about calling ev_loop() directly from C.
    
    TODO: Is the loop specific shadow user data desired?  If not, then
    the obj_index and obj_newindex should be renamed watcher_index and
    watcher_newindex.
    Brian Maher committed Sep 6, 2010
  2. Fix the idle documentation.

    Brian Maher committed Sep 6, 2010
Commits on Aug 31, 2010
  1. Split out common watcher methods from documentation

    This reduces a lot of duplication and more closely follows the libev
    documentation.
    bdowning committed with bdowning Aug 31, 2010
Commits on Aug 30, 2010
  1. Add tests for idle watcher (and priority)

    Add some simple test for the idle watcher support.  This also tests
    priority, since idle watchers are the only thing one can reliably test
    priority on.
    bdowning committed Aug 30, 2010
  2. Lazily create the shadow table for lua-ev objects

    Previously we created the shadow table (which allows storing arbitrary
    values on lua-ev objects) immediately on object creation.  Through the
    clever use of a __newindex function, we can create this table lazily,
    saving the cost of the table for users who do not use this functionality.
    bdowning committed Aug 30, 2010
Commits on Aug 28, 2010
  1. Support priority setting for watchers

    This is just a simple implementation of ev_priority/ev_set_priority.
    ev.MINPRI and ev.MAXPRI are also exported.
    bdowning committed Aug 28, 2010
  2. Use lua_State from loop:loop() call site, not watcher creation

    The lua_State for running callbacks used to be stored in a thread-local
    variable initialized when loop:loop() was called.  At some point this
    changed to be a lua_State that is stored (in watcher->data) when a
    watcher is created.  This is almost always the wrong thing in an
    environment with coroutines.
    
    Instead, abuse the userdata slot in the loop object for this.  Save
    off the old userdata before calling ev_loop(), set it to L, run ev_loop(),
    then restore it.  This gets roughly the same effect as the old code
    without requiring any pthreads nastiness, since if you're running the
    same loop from two different threads at the same time you've already
    got a problem.
    bdowning committed Aug 28, 2010
  3. Clean up lua-ev warnings

    bdowning committed Aug 28, 2010
  4. Create WATCHER_MT, abstract out common code

    This creates a common WATCHER_MT metatable that all the different
    watcher types have in their ancestry.  This allows us to eliminate a
    fair amount of common code in each watcher type's implementation.
    bdowning committed Aug 28, 2010