Class: Metasploit::Framework::ThreadFactoryProvider
- Inherits:
-
Model::Base
- Object
- Model::Base
- Metasploit::Framework::ThreadFactoryProvider
- Defined in:
- lib/metasploit/framework/thread_factory_provider.rb
Instance Attribute Summary collapse
-
#framework ⇒ Msf::Framework
The framework managing the spawned threads.
Instance Method Summary collapse
-
#spawn(name, critical, *args, &block) ⇒ Object
Spawns a thread monitored by Msf::ThreadManager in Msf::Framework#threads.
Instance Attribute Details
#framework ⇒ Msf::Framework
The framework managing the spawned threads.
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 |