2015-06-17 12:39 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/filesys.c
    ! fixed FXO_TRUNCATE flag used without FXO_SHARELOCK in POSIX systems

  * src/rtl/net.c
    ! typo in variable name

  * src/vm/task.c
    ! variable scope

  * src/compiler/compi18n.c
    * minor variable type update

  * ChangeLog.txt
    ! formatting
This commit is contained in:
Viktor Szakats
2015-06-17 13:30:50 +02:00
parent a7ad431c1d
commit e364f8634b
5 changed files with 35 additions and 15 deletions

View File

@@ -734,11 +734,10 @@ void hb_taskSuspend( void )
/* TODO: do not start task immediately */
void hb_taskResume( void * pTaskPtr )
{
PHB_TASKINFO pTask = ( PHB_TASKINFO ) pTaskPtr, pCurrTask;
PHB_TASKINFO pTask = ( PHB_TASKINFO ) pTaskPtr;
if( s_currTask != pTask )
{
pCurrTask = s_currTask;
switch( pTask->state )
{
#if ! defined( HB_HAS_UCONTEXT )
@@ -763,9 +762,12 @@ void hb_taskResume( void * pTaskPtr )
/* no break */
case TASK_RUNNING:
#if defined( HB_HAS_UCONTEXT )
s_currTask = pTask;
/* save current execution context and switch to the new one */
swapcontext( &pCurrTask->context, &pTask->context );
{
PHB_TASKINFO pCurrTask = s_currTask;
s_currTask = pTask;
/* save current execution context and switch to the new one */
swapcontext( &pCurrTask->context, &pTask->context );
}
#else
/* save current execution context */
if( setjmp( s_currTask->context ) == 0 )