2009-09-07 22:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/vm/thread.c
    + added HB_MT() PRG function which exists only in MT HVM version and
      can be REQUESTed from .prg code to force linking MT HVM.

  * harbour/contrib/hbnetio/utils/netiosrv.prg
    ! fixed typo in port parameter support
    * modified name of second parameter. Instead of 'address' use 'ifaddr'
      (interface address) which seems to be more precise name.
    * added 'request HB_MT' to protect linking with HVM without MT support.
This commit is contained in:
Przemyslaw Czerpak
2009-09-07 20:30:06 +00:00
parent d1e636c3ab
commit 385644d7fb
3 changed files with 23 additions and 2 deletions

View File

@@ -17,6 +17,17 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-09-07 22:29 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/thread.c
+ added HB_MT() PRG function which exists only in MT HVM version and
can be REQUESTed from .prg code to force linking MT HVM.
* harbour/contrib/hbnetio/utils/netiosrv.prg
! fixed typo in port parameter support
* modified name of second parameter. Instead of 'address' use 'ifaddr'
(interface address) which seems to be more precise name.
* added 'request HB_MT' to protect linking with HVM without MT support.
2009-09-07 21:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/common/watcom.mk
! Upped -p linker option (from 64 to 72) to not choke on hbrtl

View File

@@ -12,10 +12,13 @@
*
*/
proc main( cPort, cAddress )
/* netio_mtserver() needs MT HVM version */
request HB_MT
proc main( port, ifaddr )
local pListenSocket
pListenSocket := netio_mtserver( hb_ntos( cPort ), cAddress )
pListenSocket := netio_mtserver( iif( port != NIL, val( port ), ), ifaddr )
if empty( pListenSocket )
? "Cannot start server."
else

View File

@@ -2506,6 +2506,13 @@ HB_FUNC( HB_MTVM )
#endif
}
#if defined( HB_MT_VM )
HB_FUNC( HB_MT )
{
hb_retl( TRUE );
}
#endif
#if defined( HB_TASK_THREAD ) && defined( HB_MT_VM )
# include "task.c"
#endif