From: Alexander S.K. <al...@be...> - 2008-03-13 08:12:15
|
2008-03-13 11:10 UTC+0300 Alexander Kresin (alex/at/belacy.belgorod.su) * makefile.bc * Makefile.linux * Makefiles has been updated to support MT mode 2008-03-13 11:10 UTC+0300 Alexander Kresin (alex/at/belacy.belgorod.su) * The repository was tagged with 'v_single_thread' + include/funcleto.h + include/srvleto.h * include/rddleto.h * new header files has been added to separate server related headers. * Threads related function definitiona has been added * source/server/leto_lnx.c * source/server/leto_win.c * New functions for threads creating and synchronization has been added: BOOL leto_ThreadCreate( void* (*ThreadFunc)(void*) ); BOOL leto_ThreadMutexInit( LETO_MUTEX * pMutex ); void leto_ThreadMutexDestroy( LETO_MUTEX * pMutex ); BOOL leto_ThreadMutexLock( LETO_MUTEX * pMutex ); BOOL leto_ThreadMutexUnlock( LETO_MUTEX * pMutex ); BOOL leto_ThreadCondInit( LETO_COND * phEvent ); void leto_ThreadCondDestroy( LETO_COND * phEvent ); int leto_ThreadCondWait( LETO_COND * phEvent, int iMilliseconds ); BOOL leto_ThreadCondUnlock( LETO_COND * pCond ); * source/server/letofunc.c * server routines rewritten to work with two threads: first, which accepts connections, waits for clients requests and executes management functions; it doesn't touch Harbour's stack and RDD; second, which handles all requests, related to data access, and, so, works with Harbour's stack and RDD; |