This is an archive of the discontinued LLVM Phabricator instance.

Replace StreamTee's recursive_mutex with a normal mutex.
Needs ReviewPublic

Authored by teemperor on Jul 23 2018, 6:41 PM.

Details

Reviewers
davide
clayborg
Summary

StreamTee doesn't need a recursive_mutex so let's use a normal mutex instead.
Also gets rid of some micro-optimizations.

Still passes the test suite and the newly added unit test.

Diff Detail

Event Timeline

teemperor created this revision.Jul 23 2018, 6:41 PM

Adding Greg because he seem to be the one who added the lock. I think it's also worth investigating why this lock is there in the first place (as other Stream implementations are not thread safe, but this one is?)