diff options
author | Andre Pereira Azevedo Pinto <andrep@lyft.com> | 2019-12-04 17:56:54 -0800 |
---|---|---|
committer | Andre Pereira Azevedo Pinto <andrep@lyft.com> | 2019-12-09 14:55:31 -0800 |
commit | f76456b0dc14fb7c5fa55f815512b2ed07df4706 (patch) | |
tree | 0404f2468b74ad3049d5f22c18cb6b9206acffb8 /test/regress_thread.c | |
parent | 8f13c170cf6e9a02dec410b967884ec5e08947ab (diff) | |
download | libevent-f76456b0dc14fb7c5fa55f815512b2ed07df4706.tar.gz |
Add support for priority inheritance
Add support for posix mutex priority inheritance. This is important to
avoid priority inversion in systems running with threads with different
priorities.
Signed-off-by: Andre Azevedo <andre.azevedo@gmail.com>
Diffstat (limited to 'test/regress_thread.c')
-rw-r--r-- | test/regress_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/regress_thread.c b/test/regress_thread.c index 1e0ce41f..3f46764d 100644 --- a/test/regress_thread.c +++ b/test/regress_thread.c @@ -574,6 +574,9 @@ struct testcase_t thread_testcases[] = { #ifndef _WIN32 { "forking", thread_basic, TT_FORK|TT_NEED_THREADS|TT_NEED_BASE, &basic_setup, (char*)"forking" }, + { "priority_inheritance", thread_basic, + TT_FORK|TT_NEED_THREADS|TT_NEED_BASE|TT_ENABLE_PRIORITY_INHERITANCE, + &basic_setup, (char*)"priority_inheritance" }, #endif TEST(conditions_simple, TT_RETRIABLE), { "deferred_cb_skew", thread_deferred_cb_skew, |