Changeset 1331

Show
Ignore:
Timestamp:
02/02/08 14:22:41 (7 months ago)
Author:
bjornroche
Message:

removed memory barriers from section of code that is instead protected by mutex

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/src/hostapi/coreaudio/pa_mac_core_utilities.c

    r1321 r1331  
    6262#include <strings.h> 
    6363#include <pthread.h> 
    64 #include "pa_memorybarrier.h" 
    6564 
    6665PaError PaMacCore_SetUnixError( int err, int line ) 
     
    660659 
    661660      for( ; node; node=node->next ) { 
    662          PaUtil_ReadMemoryBarrier(); 
    663661         PaMacCoreStream *stream = node->stream; 
    664662 
     
    708706   newNode->stream = (PaMacCoreStream *) stream; 
    709707   newNode->next = firstXRunListNode.next; 
    710    PaUtil_WriteMemoryBarrier(); 
    711708   // insert: 
    712709   firstXRunListNode.next = newNode; 
     
    727724         --xRunListSize; 
    728725         prev->next = node->next; 
    729          PaUtil_WriteMemoryBarrier(); 
    730726         free( node ); 
    731727         pthread_mutex_unlock( &xrunMutex );