Lines Matching refs:pResource
115 IncreaseThread( struct resource *pData ): pResource( pData ) { } in IncreaseThread()
122 struct resource *pResource; member in IncreaseThread
126 pResource->lock.acquire( ); in run()
129 pResource->data1++; in run()
132 if ( pResource->data2 == 0 ) in run()
133 pResource->data2 = ( pResource->data1 > 0 ? pResource->data1 : 0 - pResource->data1 ); in run()
134 pResource->lock.release(); in run()
143 DecreaseThread( struct resource *pData ): pResource( pData ) { } in DecreaseThread()
150 struct resource *pResource; member in DecreaseThread
154 pResource->lock.acquire( ); in run()
157 pResource->data1--; in run()
160 if ( pResource->data2 == 0 ) in run()
161 pResource->data2 = ( pResource->data1 > 0 ? pResource->data1 : 0 - pResource->data1 ); in run()
162 pResource->lock.release(); in run()