Project

General

Profile

Actions

action #10604

closed

mutex lock looks does not work

Added by jerrytang about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
-
Start date:
2016-02-05
Due date:
% Done:

0%

Estimated time:

Description

I create 2 parallel job (jerry,jerry1):

for jerry1 (parent):

sub run() {
check_screen "jerry_wait11", 300;
mutex_create('xxx');
sleep 20;
}

1;

for jerry (child):

#!/usr/bin/perl -w
use strict;
use base "basetest";
use testapi;
use lockapi;

sub run() {
mutex_unlock('xxx');
sleep 20;
}

1;

two job in same test group.

I run this jobs , it was started in parallel. but test mutex does work ,

mutex_unlock won't in block.

and I wonder how does block looks like : "mutex lock 'xxx' unavailable, sleeping 5s" ?

if like this. I think it is from mutex_lock function in lockapi . (which means mutex_unlock won't block right?)

Actions

Also available in: Atom PDF