summaryrefslogtreecommitdiff
path: root/sync.t
diff options
context:
space:
mode:
Diffstat (limited to 'sync.t')
-rw-r--r--sync.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync.t b/sync.t
index 3b7b1e48c4..9c2e5897da 100644
--- a/sync.t
+++ b/sync.t
@@ -3,6 +3,7 @@ use Thread;
$level = 0;
sub single_file {
+ use attrs 'locked';
my $arg = shift;
$level++;
print "Level $level for $arg\n";
@@ -50,7 +51,6 @@ sub start_baz {
$| = 1;
srand($$^$^T);
-Thread::sync(\&single_file);
$foo = new Thread \&start_foo;
$bar = new Thread \&start_bar;