Lines Matching refs:pResource
113 IncreaseThread( struct resource *pData ): pResource( pData ) { } in IncreaseThread()
120 struct resource *pResource; member in IncreaseThread
124 pResource->lock.acquire( ); in run()
127 pResource->data1++; in run()
130 if ( pResource->data2 == 0 ) in run()
131 pResource->data2 = ( pResource->data1 > 0 ? pResource->data1 : 0 - pResource->data1 ); in run()
132 pResource->lock.release(); in run()
141 DecreaseThread( struct resource *pData ): pResource( pData ) { } in DecreaseThread()
148 struct resource *pResource; member in DecreaseThread
152 pResource->lock.acquire( ); in run()
155 pResource->data1--; in run()
158 if ( pResource->data2 == 0 ) in run()
159 pResource->data2 = ( pResource->data1 > 0 ? pResource->data1 : 0 - pResource->data1 ); in run()
160 pResource->lock.release(); in run()