Lines Matching refs:cnt
37 Data() : cnt( 1 ), state( Orig ) {}
38 Data( const Data &d ) : D( d ), cnt( 1 ), state( d.state & (~Orig) ) {}
45 Data( void* ) : cnt( 1 ), state( Null ) {}
52 void ref() { cnt++; }
53 bool deref() { return !--cnt; }
56 int cnt;
290 if ( !(d->state & Data::Null) && d->cnt > 1 ) {
313 if ( d->cnt > 1 ) {
369 if ( d->cnt > 1 )
380 if ( cnt )
381 printf( "~Data(): ref count is %d, but must be zero!\n", cnt );
385 if ( cnt <= 0 )
389 cnt
391 cnt++;
395 if ( cnt <= 0 )
399 cnt
401 return !--cnt;