Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

CLOS API #2

Merged
merged 25 commits into from

2 participants

@sbryant
Owner

We now have a CLOS wrapper around the cffi libev bindings.
The only watchers supported right now are Timer, Periodic, IO

Sean Bryant and others added some commits
Sean Bryant [wrapper] renaming ev.lisp to cffi.lisp.
ev.lisp will be used to wrap the cffi kludge.
629716f
Sean Bryant [wrapper] Move init functions to cffi. d031657
Sean Bryant [wrapper] WIP Stab at clos api wrapper around libev.
It sucks but it seems to work.
d97238e
Sean Bryant [wrapper] Add support for periodic (cron) ev watchers. 635d62d
Sean Bryant [wrapper] make initialize :after combinator setup a finalizer to free…
… the foreign objects.
54acd4e
Sean Bryant [wrapper] Add a way to stop the watchers. c18b2b5
Sean Bryant [wrapper] The repeat is the interval on which to repeat the event. No…
…t a boolean.
2b7e9c1
Sean Bryant [wrapper] This was moved down. 4bd57f5
Sean Bryant [wrapper] Move starting the timers to :before event-dispatch instead …
…of on initialization.
fd1e5b2
Sean Bryant [wrapper] Since this is a pointer, we will call it that.
Also change the accessor from watcher to ev-pointer.
dfc0751
Sean Bryant [wrapper] watcher -> ev-pointer 831fc76
Sean Bryant [wrapper] missed a generic function. 740cfd2
Sean Bryant [wrapper] According to docs, the default loop is safe to destroy. edb86e6
Sean Bryant [wrapper] Don't refer to the object inside of the finalizer.
It turns out we don't really have enough info to stop the watcher on garbage collection.
0eb6c75
@sshirokov sshirokov [exports] Export enough to build an event loop and add some timers. 6db8252
@sshirokov sshirokov [exports] Make event-dispatch conditionally add watchers and exportin…
…g start-watcher
71f0c3f
@sshirokov sshirokov [exports] The deffparams should be defvars 248a60a
@sshirokov sshirokov [exports] These checks were incorrect, because in C a truth test is c…
…loser to (not (zerop))
bba7ffc
@sshirokov sshirokov [exports] Removing callback invocation noise 5c8ddb7
@sshirokov sshirokov [exports] Exporting `ev-watcher' 1001d01
@sshirokov sshirokov [exports] Exporting the io watcher, setter and the EV_READ constant 915bfbe
@sshirokov sshirokov [exports] Export the write event constant 6457ac7
@sshirokov sshirokov [exports] Optionally allow the callback to be preserved between stops…
… of a watcher
1570fa2
@sshirokov sshirokov [exports] Renaming param to start-watchers 5136d34
@sbryant Merge pull request #1 from sshirokov/exports
Usage accumulated changes.
5309a4b
@sbryant sbryant merged commit 49bba1a into master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 15, 2012
  1. [wrapper] renaming ev.lisp to cffi.lisp.

    Sean Bryant authored
    ev.lisp will be used to wrap the cffi kludge.
Commits on Mar 8, 2012
  1. [wrapper] Move init functions to cffi.

    Sean Bryant authored
  2. [wrapper] WIP Stab at clos api wrapper around libev.

    Sean Bryant authored
    It sucks but it seems to work.
Commits on Mar 9, 2012
  1. [wrapper] make initialize :after combinator setup a finalizer to free…

    Sean Bryant authored
    … the foreign objects.
  2. [wrapper] Add a way to stop the watchers.

    Sean Bryant authored
  3. [wrapper] The repeat is the interval on which to repeat the event. No…

    Sean Bryant authored
    …t a boolean.
  4. [wrapper] This was moved down.

    Sean Bryant authored
Commits on Mar 15, 2012
  1. [wrapper] Move starting the timers to :before event-dispatch instead …

    Sean Bryant authored
    …of on initialization.
Commits on Mar 19, 2012
  1. [wrapper] Since this is a pointer, we will call it that.

    Sean Bryant authored
    Also change the accessor from watcher to ev-pointer.
  2. [wrapper] watcher -> ev-pointer

    Sean Bryant authored
  3. [wrapper] missed a generic function.

    Sean Bryant authored
  4. [wrapper] Don't refer to the object inside of the finalizer.

    Sean Bryant authored
    It turns out we don't really have enough info to stop the watcher on garbage collection.
Commits on Mar 20, 2012
  1. @sshirokov
  2. @sshirokov
  3. @sshirokov
  4. @sshirokov
  5. @sshirokov
  6. @sshirokov
  7. @sshirokov
  8. @sshirokov
  9. @sshirokov
  10. @sshirokov
  11. Merge pull request #1 from sshirokov/exports

    authored
    Usage accumulated changes.
Something went wrong with that request. Please try again.