﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
204	pthread: wrlock() causes CPU load to 99.9% and tryrdlock()/trywrlock() falls into deadlock	KO Myung-Hun		"Hi/2.

Let's see the following case.

1. main thread: acquire rdlock
2. second thread: try to acquire wrlock
3. third thread: try to acquire tryrdlock

In 2., CPU load gets to 99.9% because of a tight loop in pthread_rwlock_wrlock(). And In 3., deadlock occurs in pthread_rwlock_tryrdlock() because lock->mutex is not released in pthread_rwlock_wrlock().

This occured in the test of pthread_rwlock_rdlock.m4."	defect	closed	major		*none		medium	fixed		
