pending? (Fam::Connection)

    /*
     * Are there any events in the queue?
     *
     * Raises a Fam::Error exception if FAM couldn't check for pending
     * events.
     *
     * Aliases:
     *   Fam::Connection#pending
     *
     * Examples:
     *   puts 'no events pending' unless fam.pending?
     *
     */
    static VALUE fam_conn_pending(VALUE self)
    {
      FAMConnection *conn;
      int err;

      Data_Get_Struct(self, FAMConnection, conn);
      err = FAMPending(conn);

      if (err == -1) {
        rb_raise(eError, "Couldn't check for pending FAM events: %s", fam_error());
      }

      return (err > 0) ? Qtrue : Qfalse;
    }