##
## CONCEPT for libyourserver concepts in src/
## 
## Made by Dias Da Silva Loic <mglcel@linuxfr.net>
## 
## Started on      Sun Nov  5 04:28:54 2000 by Dias Da Silva Loic
## Last updated on Mon Nov  6 23:15:06 2000 by 
## 
## Description : Concepts

##
-------------------
| SESSION CONCEPT |
-------------------




                                       -----------
                                      | Session B |           --------------
                                       -----.-----           | Server |Two| |
                                           /                  -.------------
                         -----------      /                 . /
                        | Session A |    /              . /
                         -----.-----    /           . /
                              |        /        . /
                              |       /       / 
                         -----.------.-------.
                        |                     |                 -----------
                        |  Server |One|       |----------------| Session C | 
                        |                     |                 -----------
                         ----.----------.---.- 
                            .           |    \  
                           .    --------.-------------
                          .    | Intermediate session |
                         .      ----------------------
                        .                        \ 
  ---------------------.---------                 .----------
 |                               |               | Session D |
 |                               |                -----------
 |     Application               |           
 |                               |                -----------
 |                               |               | Session E |
  ---------------------.---------                 .----------
                        .                        /
			 .      -----------------------
			  .    | Intermediate Session  |
			   .    --------.--------------        
			    .           |    /
		        -----.----------.---.
		       |                     |                  -----------
		       |  Server |Two|       .-----------------| Session F |  
		       |                     |                  -----------
		        -----.-----.---------
                             |      \        \
		             |       \         .
			-----.-----   \          \
		       | Session H |   \	  .
			-----------	\	    \
					 \	      .
				     -----.-----        \
				    | Session G  |	  .
				     -----------	    \
				                           -.------------
							  | Server |One| |
                                                           --------------





Legend :
--------

. . . . . . . .    =    server threads
. - - - - - - .    =    session threads
- . - . - . - .    =    server2server session threads


Wrappers :
----------

* Spawning threads is made by calling ysqld_wrap_spawn as the pth_spawn
second attribute and the Session object pointer as third attribute since
the pth_spwan fonction doesn't accept class member functions.
* The same thing is done for unix signals by ysqld_wrap_signal.

wrappers can be found in ysqld_wrappers.cc

If anybody knowns another solution with C++ and GNU-Pth  .. <dias-d_l@epita.fr>



			
