OSDN Git Service

util: Added tsan annotate for thread name.
authorRobert Foley <robert.foley@linaro.org>
Fri, 12 Jun 2020 19:02:33 +0000 (20:02 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 16 Jun 2020 13:49:05 +0000 (14:49 +0100)
commitce9f0e5b26eb0f37329d27f5f2e3e453ac0acabc
tree2042bc55a05f10e7cabdd13efb959c1be67fcd19
parente51345eea9057c2a2098322df9e9797cd4bc7f8d
util: Added tsan annotate for thread name.

This allows us to see the name of the thread in tsan
warning reports such as this:

  Thread T7 'CPU 1/TCG' (tid=24317, running) created by main thread at:

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200609200738.445-12-robert.foley@linaro.org>
Message-Id: <20200612190237.30436-15-alex.bennee@linaro.org>
util/qemu-thread-posix.c