session_scheduler.h

00001 /* Copyright (C) 2009 Sun Microsystems
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 #ifndef PLUGIN_POOL_OF_THREADS_SESSION_SCHEDULER_H
00017 #define PLUGIN_POOL_OF_THREADS_SESSION_SCHEDULER_H
00018 
00019 #include <event.h>
00020 
00021 class Session;
00022 
00023 class session_scheduler
00024 {
00025 public:
00026   bool logged_in;
00027   struct event io_event;
00028   Session *session;
00029   bool thread_attached;  /* Indicates if Session is attached to the OS thread */
00030 
00031   session_scheduler(Session *);
00032   bool thread_attach();
00033   void thread_detach();
00034 };
00035 
00036 #endif /* PLUGIN_POOL_OF_THREADS_SESSION_SCHEDULER_H */

Generated on Tue Jan 5 10:49:17 2010 for drizzle by  doxygen 1.5.8