pipebuffer: Don't synchronize when checking for buffer overflows.

To avoid masking synchronization issues in debug builds.
This commit is contained in:
José Fonseca 2010-02-16 15:51:34 +00:00
parent e9ac0fbe9b
commit 935929595c
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ pb_debug_buffer_check(struct pb_debug_buffer *buf)
{
uint8_t *map;
map = pb_map(buf->buffer, PIPE_BUFFER_USAGE_CPU_READ);
map = pb_map(buf->buffer,
PIPE_BUFFER_USAGE_CPU_READ |
PIPE_BUFFER_USAGE_UNSYNCHRONIZED);
assert(map);
if(map) {
boolean underflow, overflow;