This repository has been archived by the owner. It is now read-only.
A Ruby interface to native threads on MS Windows
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib/win32
test
CHANGES
MANIFEST
README
Rakefile
win32-thread.gemspec

README

= Description
   A Ruby wrapper for native Windows API thread functions.

= WARNING
   This was a highly unstable and experimental attempt to wrap native Windows 
   threads and should not be used. It was originally written before Ruby
   supported native threads.

   The gems for this library have been yanked, and this library should be
   considered unsupported. Please do not post issues. It has been left online
   for academic/historical interest only.

= Synopsis
   require 'win32/thread'

   thread = Win32::Thread.new('a', 'b'){ |x,y| puts "X: #{x}, Y: #{y}" }
   puts "Done"
   thread.join

= Installation
   rake install (non-gem) or rake install_gem (gem)

= Technical Notes
   This wraps the CreateThread() function from the Windows API. It passes
   the block and its parameters to a thread function, where it is then
   executed.

= Known Bugs
   Segfaults when you attempt to create more than one thread.
   Does not seem to handle arguments to the thread block correctly when more
   than one thread is created.
	
= Future Plans
  None. See warning above.
	
= Copyright
   (C) 2003-2016, Daniel J. Berger, All Rights Reserved
    
= License
   Artistic 2.0
    
= Warranty
   This package is provided "as is" and without any express or
   implied warranties, including, without limitation, the implied
   warranties of merchantability and fitness for a particular purpose.
	
   This is ALPHA code. It is absolutely not meant to be used in a
   production environment. See warning above.
	
= Author
   Daniel J. Berger
   Park Heesob