Subversion Repositories HelenOS-historic

Rev

Rev 1502 | Rev 1757 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1502 Rev 1702
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 /** @addtogroup sync
-
 
30
 * @{
-
 
31
 */
-
 
32
 
29
/**
33
/**
30
 * @file    semaphore.c
34
 * @file
31
 * @brief   Semaphores.
35
 * @brief   Semaphores.
32
 */
36
 */
33
 
37
 
34
#include <synch/semaphore.h>
38
#include <synch/semaphore.h>
35
#include <synch/waitq.h>
39
#include <synch/waitq.h>
Line 87... Line 91...
87
 */
91
 */
88
void semaphore_up(semaphore_t *s)
92
void semaphore_up(semaphore_t *s)
89
{
93
{
90
    waitq_wakeup(&s->wq, WAKEUP_FIRST);
94
    waitq_wakeup(&s->wq, WAKEUP_FIRST);
91
}
95
}
-
 
96
 
-
 
97
 /** @}
-
 
98
 */
-
 
99