Main Page | Class List | Directories | File List | Class Members | File Members

ObitThread.h

Go to the documentation of this file.
00001 /* $Id: ObitThread.h,v 1.1.1.1 2004/07/19 16:42:40 bcotton Exp $                            */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2002-2003                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;  This program is free software; you can redistribute it and/or    */
00006 /*;  modify it under the terms of the GNU General Public License as   */
00007 /*;  published by the Free Software Foundation; either version 2 of   */
00008 /*;  the License, or (at your option) any later version.              */
00009 /*;                                                                   */
00010 /*;  This program is distributed in the hope that it will be useful,  */
00011 /*;  but WITHOUT ANY WARRANTY; without even the implied warranty of   */
00012 /*;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    */
00013 /*;  GNU General Public License for more details.                     */
00014 /*;                                                                   */
00015 /*;  You should have received a copy of the GNU General Public        */
00016 /*;  License along with this program; if not, write to the Free       */
00017 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00018 /*;  MA 02139, USA.                                                   */
00019 /*;                                                                   */
00020 /*;  Correspondence this software should be addressed as follows:     */
00021 /*;         Internet email: bcotton@nrao.edu.                         */
00022 /*;         Postal address: William Cotton                            */
00023 /*;                         National Radio Astronomy Observatory      */
00024 /*;                         520 Edgemont Road                         */
00025 /*;                         Charlottesville, VA 22903-2475 USA        */
00026 /*--------------------------------------------------------------------*/
00027 #ifndef OBITTHREAD_H 
00028 #define OBITTHREAD_H 
00029 #include <glib.h>
00030 
00035 /*--------------Class definitions-------------------------------------*/
00036 /* basically dummied for now.*/
00042 typedef struct {
00044   gchar className[12];
00046   gint32 id;
00048   gint32 ReferenceCount; 
00049 } ObitThread;
00050 
00051 /*---------------Public functions---------------------------*/
00053 ObitThread* newObitThread (void);
00054 
00056 ObitThread* freeObitThread (ObitThread *in);
00057 
00059 ObitThread* ObitThreadCopy (ObitThread* in);
00060 
00062 ObitThread* ObitThreadRef (ObitThread* in);
00063 
00065 ObitThread* ObitThreadUnref (ObitThread* in);
00066 
00068 void ObitThreadLock (ObitThread *in);
00069 
00071 void ObitThreadUnlock (ObitThread *in);
00072 
00074 void ObitThreadJoin  (ObitThread *in);
00075 
00077 gboolean ObitThreadIsA (ObitThread* in);
00078 
00079 #endif /* OBITTHREAD_H */ 
00080 

Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1