Changeset 1993 in Sophya for trunk/ArchTOIPipe/Kernel/toi.h


Ignore:
Timestamp:
May 9, 2002, 10:22:37 PM (23 years ago)
Author:
ansari
Message:

Ajout de lock()/unlock() ds toiseqbuff.cc - Reza 9/5/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toi.h

    r1766 r1993  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toi.h,v 1.15 2001-11-14 14:49:05 aubourg Exp $
     7// $Id: toi.h,v 1.16 2002-05-09 20:22:37 ansari Exp $
    88
    99#ifndef TOI_H
     
    127127
    128128  //   ----- Rajouts Reza 12/3/2001
    129   void wait() {pthread_cond_wait(&condv, &mutex);}
    130   void signal() {pthread_cond_signal(&condv);}
    131   void broadcast() {pthread_cond_broadcast(&condv);}
     129  inline void wait() {pthread_cond_wait(&condv, &mutex);}
     130  inline void signal() {pthread_cond_signal(&condv);}
     131  inline void broadcast() {pthread_cond_broadcast(&condv);}
    132132  inline void waitPut()
    133133    {fgwaitput=true; countwaitput++; pthread_cond_wait(&condv, &mutex);}
     
    136136  inline bool isPutWaiting() const { return fgwaitput; }
    137137  inline bool isGetWaiting() const { return fgwaitget; }
    138   inline void signalPut() {fgsigput=true;}
    139   inline void signalGet() {fgsigget=true;}
     138  inline void signalPut() {fgsigput=true; }
     139  inline void signalGet() {fgsigget=true; }
    140140  inline void cleanWaitPut() { fgsigput = fgwaitput = false; }
    141141  inline void cleanWaitGet() { fgsigget = fgwaitget = false; }
Note: See TracChangeset for help on using the changeset viewer.