mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 06:15:24 +00:00
Only use Mutexes if Ruby knows about them (Ruby 1.8.6 issue)
This commit is contained in:
parent
2d16b68113
commit
607cc79465
@ -1,9 +1,11 @@
|
||||
$message_mutex = Mutex.new
|
||||
def puts(message)
|
||||
$message_mutex.lock
|
||||
$stdout.puts message
|
||||
$stdout.flush
|
||||
$message_mutex.unlock
|
||||
if defined? Mutex
|
||||
$message_mutex = Mutex.new
|
||||
def puts(message)
|
||||
$message_mutex.lock
|
||||
$stdout.puts message
|
||||
$stdout.flush
|
||||
$message_mutex.unlock
|
||||
end
|
||||
end
|
||||
|
||||
def error(message)
|
||||
|
Loading…
Reference in New Issue
Block a user