Displaying 1 result from an estimated 1 matches for "getthreadpriority".
Did you mean:
setthreadpriority
2008 May 18
2
Pure win32-thread library?
...Object(@thread, limit)
ReleaseMutex(@@mutex)
end
def terminate
exit_code = [0].pack(''L'')
return nil unless TerminateThread(@thread, exit_code)
end
def exit
ExitThread(0)
end
def priority
GetThreadPriority(@thread)
end
def priority=(value)
unless SetThreadPriority(@thread, value)
raise Error, get_last_error
end
end
end
end
if $0 == __FILE__
t = Win32::Thread.new(''a'', ''b''){ |x, y| puts "Hello: #{x}...