bitset: Rename bitset_stream_on/off as bitset_enable/disable_stream

This commit is contained in:
nick
2013-09-23 17:10:14 +01:00
parent 5c1b119f83
commit 78fc65c515
3 changed files with 17 additions and 17 deletions

View File

@@ -289,7 +289,7 @@ static inline uint64_t bitset_stream_queued_bytes(
return total;
}
static inline void bitset_stream_on( struct bitset * set )
static inline void bitset_enable_stream( struct bitset * set )
{
BITSET_LOCK;
set->stream_enabled = 1;
@@ -297,7 +297,7 @@ static inline void bitset_stream_on( struct bitset * set )
BITSET_UNLOCK;
}
static inline void bitset_stream_off( struct bitset * set )
static inline void bitset_disable_stream( struct bitset * set )
{
BITSET_LOCK;
bitset_stream_enqueue( set, BITSET_STREAM_OFF, 0, set->size );

View File

@@ -762,7 +762,7 @@ void mirror_run( struct server *serve )
* should expand the event loop upwards so we can do the same there too */
sock_set_nonblock( m->client, 1 );
bitset_stream_on( serve->allocation_map );
bitset_enable_stream( serve->allocation_map );
info( "Entering event loop" );
ev_run( ctrl.ev_loop, 0 );
@@ -789,7 +789,7 @@ void mirror_run( struct server *serve )
/* mirror_reset will be called before a retry, so keeping hold of events
* between now and our next mirroring attempt is not useful
*/
bitset_stream_off( serve->allocation_map );
bitset_disable_stream( serve->allocation_map );
}
return;