# syncpoint.h

Go to the documentation of this file.

    00001 /*
    00002  * syncpoint.h
    00003  *
    00004  * Single thread synchronisation point (event) class.
    00005  *
    00006  * Portable Tools Library
    00007  *
    00008  * Copyright (c) 1993-1998 Equivalence Pty. Ltd.
    00009  *
    00010  * The contents of this file are subject to the Mozilla Public License
    00011  * Version 1.0 (the "License"); you may not use this file except in
    00012  * compliance with the License. You may obtain a copy of the License at
    00013  * http://www.mozilla.org/MPL/
    00014  *
    00015  * Software distributed under the License is distributed on an "AS IS"
    00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
    00017  * the License for the specific language governing rights and limitations
    00018  * under the License.
    00019  *
    00020  * The Original Code is Portable Windows Library.
    00021  *
    00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
    00023  *
    00024  * Portions are Copyright (C) 1993 Free Software Foundation, Inc.
    00025  * All Rights Reserved.
    00026  *
    00027  * Contributor(s): ______________________________________.
    00028  *
    00029  * $Revision: 24177 $
    00030  * $Author: rjongbloed $
    00031  * $Date: 2010-04-05 06:52:04 -0500 (Mon, 05 Apr 2010) $
    00032  */
    00033
    00034 #ifndef PTLIB_SYNCPOINT_H
    00035 #define PTLIB_SYNCPOINT_H
    00036
    00037 #ifdef P_USE_PRAGMA
    00038 #pragma interface
    00039 #endif
    00040
    00041 #include <ptlib/semaphor.h>
    00042
    00043
    00067 class PSyncPoint : public PSemaphore
    00068 {
    00069   PCLASSINFO(PSyncPoint, PSemaphore);
    00070
    00071   public:
    00074     PSyncPoint();
    00075     PSyncPoint(const PSyncPoint &);
    00076
    00077
    00078 // Include platform dependent part of class
    00079 #ifdef _WIN32
    00080 #include "msos/ptlib/syncpoint.h"
    00081 #else
    00082 #include "unix/ptlib/syncpoint.h"
    00083 #endif
    00084 };
    00085
    00086
    00087 #endif // PTLIB_SYNCPOINT_H
    00088
    00089
    00090 // End Of File ///////////////////////////////////////////////////////////////