Class: Metasploit::Framework::ThreadFactoryProvider

Inherits:
Model::Base
  • Object
show all
Defined in:
lib/metasploit/framework/thread_factory_provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frameworkMsf::Framework

The framework managing the spawned threads.

Returns:



19
20
21
# File 'lib/metasploit/framework/thread_factory_provider.rb', line 19

def framework
  @framework
end

Instance Method Details

#spawn(name, critical, *args, &block) ⇒ Object

Spawns a thread monitored by Msf::ThreadManager in Msf::Framework#threads.

(see Msf::ThreadManager#spawn)



24
25
26
# File 'lib/metasploit/framework/thread_factory_provider.rb', line 24

def spawn(name, critical, *args, &block)
  framework.threads.spawn(name, critical, *args, &block)
end