/[openvortex]/alsa/alsa-kernel/core/seq/seq_memory.c
ViewVC logotype

Diff of /alsa/alsa-kernel/core/seq/seq_memory.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by vizard, Sat May 31 02:35:10 2003 UTC revision 1.3 by vizard, Sun Jun 15 21:01:30 2003 UTC
# Line 235  int snd_seq_cell_alloc(pool_t *pool, snd Line 235  int snd_seq_cell_alloc(pool_t *pool, snd
235          while (pool->free == NULL && ! nonblock && ! pool->closing) {          while (pool->free == NULL && ! nonblock && ! pool->closing) {
236    
237                  spin_unlock(&pool->lock);                  spin_unlock(&pool->lock);
 #ifdef LINUX_2_2  
                 /* change semaphore to allow other clients  
                    to access device file */  
                 if (file)  
                         up(&semaphore_of(file));  
 #endif  
238                  interruptible_sleep_on(&pool->output_sleep);                  interruptible_sleep_on(&pool->output_sleep);
 #ifdef LINUX_2_2  
                 /* restore semaphore again */  
                 if (file)  
                         down(&semaphore_of(file));  
 #endif  
239                  spin_lock(&pool->lock);                  spin_lock(&pool->lock);
240                  /* interrupted? */                  /* interrupted? */
241                  if (signal_pending(current)) {                  if (signal_pending(current)) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26