~patrick-crews/randgen/bug961630

« back to all changes in this revision

Viewing changes to lib/GenTest/Reporter/Deadlock.pm

  • Committer: Bernt M. Johnsen
  • Date: 2010-04-08 11:05:05 UTC
  • Revision ID: bernt.johnsen@sun.com-20100408110505-66z8d8139thjta80
Adjustments after merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
                return STATUS_SERVER_DEADLOCKED;
57
57
        }
58
58
 
59
 
        if (windows()) {
 
59
        if (osWindows()) {
60
60
                return $reporter->monitor_threaded();
61
61
        } else {
62
62
                return $reporter->monitor_nonthreaded();
155
155
        foreach my $thread ($alarm_thread, $dbh_thread) {
156
156
                next if !$thread->is_running();
157
157
                # Windows hangs when joining killed threads
158
 
                if (windows()) {
 
158
                if (osWindows()) {
159
159
                        $thread->kill('SIGKILL');
160
160
                } else {
161
161
                        $thread->kill('SIGKILL')->join();