Method: Vips.concurrency_set
- Defined in:
- lib/vips.rb
.concurrency_set(n) ⇒ Object
Set the size of each libvips worker pool. Max 1024 threads. Set to 1 to disable threading. Set to 0 or nil to reset to default.
771 772 773 774 775 |
# File 'lib/vips.rb', line 771 def self.concurrency_set n n = DEFAULT_CONCURRENCY if n.to_i == 0 vips_concurrency_set n concurrency end |