From 9f10911d2b653859f7199eaed5a85a24803711dc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 22 Apr 2015 21:29:21 +0200 Subject: score: Delete Thread_queue_Control::state Use a parameter for _Thread_queue_Enqueue() instead to reduce memory usage. --- cpukit/libfs/src/pipe/fifo.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'cpukit/libfs/src/pipe/fifo.c') diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index 91d95dc946..76550ddd06 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -61,27 +61,6 @@ static rtems_id pipe_semaphore = RTEMS_ID_NONE; #define PIPE_WAKEUPWRITERS(_pipe) \ do {uint32_t n; rtems_barrier_release(_pipe->writeBarrier, &n); } while(0) - -#ifdef RTEMS_POSIX_API -#include -#include - -/* Set barriers to be interruptible by signals. */ -static void pipe_interruptible(pipe_control_t *pipe) -{ - Objects_Locations location; - Barrier_Control *the_barrier; - - the_barrier = _Barrier_Get(pipe->readBarrier, &location); - the_barrier->Barrier.Wait_queue.state |= STATES_INTERRUPTIBLE_BY_SIGNAL; - _Objects_Put( &the_barrier->Object ); - - the_barrier = _Barrier_Get(pipe->writeBarrier, &location); - the_barrier->Barrier.Wait_queue.state |= STATES_INTERRUPTIBLE_BY_SIGNAL; - _Objects_Put( &the_barrier->Object ); -} -#endif - /* * Alloc pipe control structure, buffer, and resources. * Called with pipe_semaphore held. @@ -122,10 +101,6 @@ static int pipe_alloc( RTEMS_NO_PRIORITY, &pipe->Semaphore) != RTEMS_SUCCESSFUL) goto err_sem; -#ifdef RTEMS_POSIX_API - pipe_interruptible(pipe); -#endif - *pipep = pipe; if (c ++ == 'z') c = 'a'; -- cgit v1.2.3