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

    brimworks committed Aug 4, 2015
    Lua 5.3 compatibility
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,…

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

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

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

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

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

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

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

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

    Brian Maher committed Oct 23, 2011
    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.
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

    miGlanz committed Mar 7, 2011
    This way require 'ev' makes 'ev' available in the global namespace.
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

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

    bdowning committed with brimworks Sep 15, 2010
    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).
  3. lua-ev: Simplify watcher auto-stop

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

    Brian Maher committed Sep 6, 2010
    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.
  2. Fix the idle documentation.

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

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

    bdowning committed Aug 30, 2010
    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.
  2. Lazily create the shadow table for lua-ev objects

    bdowning committed Aug 30, 2010
    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.
Commits on Aug 28, 2010
  1. Support priority setting for watchers

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

    bdowning committed Aug 28, 2010
    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.
  3. Clean up lua-ev warnings

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

    bdowning committed Aug 28, 2010
    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.