/* * Creates a msgpack array which contains all the messages packed after * the last time send_messages() was called, and sends it over the PUB socket. */ static VALUE send_messages() { if(test_mode_enabled) return Qnil; //NOOP rb_postponed_job_register(0, trigger_publish_callback, (void *)server_instance); return Qnil; }
static VALUE pjob_register(VALUE self, VALUE obj) { rb_postponed_job_register(0, pjob_callback, (void *)obj); return self; }