[complement-svn] SF.net SVN: complement: [1730] trunk/complement/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-09-10 09:41:21
|
Revision: 1730 http://complement.svn.sourceforge.net/complement/?rev=1730&view=rev Author: complement Date: 2007-09-10 02:41:19 -0700 (Mon, 10 Sep 2007) Log Message: ----------- fix thread return type Modified Paths: -------------- trunk/complement/explore/include/DB/PgSQL.h trunk/complement/explore/lib/DB/PgSQL/PgSQL.cc Modified: trunk/complement/explore/include/DB/PgSQL.h =================================================================== --- trunk/complement/explore/include/DB/PgSQL.h 2007-09-10 09:14:38 UTC (rev 1729) +++ trunk/complement/explore/include/DB/PgSQL.h 2007-09-10 09:41:19 UTC (rev 1730) @@ -68,7 +68,7 @@ virtual std::string IS_NOT_NULL() const; private: - static xmt::Thread::ret_code conn_proc( void * ); + static xmt::Thread::ret_t conn_proc( void * ); DBconn *_conn; xmt::Thread thr; Modified: trunk/complement/explore/lib/DB/PgSQL/PgSQL.cc =================================================================== --- trunk/complement/explore/lib/DB/PgSQL/PgSQL.cc 2007-09-10 09:14:38 UTC (rev 1729) +++ trunk/complement/explore/lib/DB/PgSQL/PgSQL.cc 2007-09-10 09:41:19 UTC (rev 1730) @@ -77,11 +77,9 @@ //} } -xmt::Thread::ret_code DataBase::conn_proc( void *p ) +xmt::Thread::ret_t DataBase::conn_proc( void *p ) { DataBase *me = reinterpret_cast<DataBase *>(p); - xmt::Thread::ret_code ret; - ret.iword = 0; me->_conn = PQsetdbLogin( me->_dbhost.length() > 0 ? me->_dbhost.c_str() : 0, 0 /* _dbport */, me->_dbopt.length() > 0 ? me->_dbopt.c_str() : 0, @@ -100,7 +98,7 @@ } me->con_cond.set( true ); - return ret; + return 0; } void DataBase::reconnect() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |