This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ruby.h" | |
// http://www.angelfire.com/electronic2/issac/rb_cpp_ext_tut.txt | |
typedef VALUE (ruby_method)(...); | |
VALUE DeviceDriver = Qnil; | |
struct conn { | |
VALUE settings; | |
connection *conn_ptr; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sidekiq process structure | |
# 1 main thread https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/cli.rb#L104 | |
# 1 heartbeat thread https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/launcher.rb#L23 | |
# 1 scheduled thread https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/scheduled.rb#L63 | |
# options[:concurency] manager threads https://github.com/mperham/sidekiq/blob/master/lib/sidekiq/manager.rb#L44 | |
# If using sidekiq-scheduler gem | |
# 1 rufus scheduler thread https://github.com/jmettraux/rufus-scheduler/blob/master/lib/rufus/scheduler.rb#L537 | |
# Some arbitrary number up to :max_work_threads https://github.com/jmettraux/rufus-scheduler/blob/master/lib/rufus/scheduler/jobs.rb#L332 |