mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
13 lines
199 B
Ruby
13 lines
199 B
Ruby
|
$message_mutex = Mutex.new
|
||
|
def show_message message
|
||
|
$message_mutex.lock
|
||
|
puts message
|
||
|
$message_mutex.unlock
|
||
|
end
|
||
|
|
||
|
def error_and_exit text, exit_code = 2
|
||
|
show_message text
|
||
|
exit exit_code
|
||
|
end
|
||
|
|