This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
annotate S_ithread_create create_destruct_mutex use
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 18 Nov 2015 03:15:09 +0000 (22:15 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 23 Nov 2015 11:55:12 +0000 (06:55 -0500)
commit8d4233af1ad448874c8b64ec95d703ba699c73d8
treee5679707436881a4619fefcb0c60ffc13660cfec
parentd7cdea6970fdb29e02e46757e6f6940652223aea
annotate S_ithread_create create_destruct_mutex use

If the pool is passed in, and the create_destruct_mutex unlocked also
on success (so that all the unlocks happen in S_ithread_create()),
the create_destruct_mutex use can be annotated.

threads.xs:757:9: warning: releasing mutex 'my_poolp->create_destruct_mutex' th
at was not held [-Wthread-safety-analysis]
        MUTEX_UNLOCK(&MY_POOL.create_destruct_mutex);

threads.xs:1000:9: warning: releasing mutex 'my_poolp->create_destruct_mutex' t
hat was not held [-Wthread-safety-analysis]
        MUTEX_UNLOCK(&MY_POOL.create_destruct_mutex);

threads.c:1319:1: warning: mutex 'my_poolp->create_destruct_mutex' is not held on every path through here [-Wthread-safety-analysis]
}
^
dist/threads/threads.xs