Changes in / [09ccaf5:2ee0076]


Ignore:
Location:
src
Files:
2 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    r09ccaf5 r2ee0076  
    9292
    9393## =========================================================================================================
    94 loop$(EXEEXT):
    95         @@BACKEND_CC@ loop.c      -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    96 
    97 function$(EXEEXT):
    98         @@BACKEND_CC@ function.c  -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    99 
    100 fetch_add$(EXEEXT):
    101         @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000  -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    102 
    103 ## =========================================================================================================
    10494ctxswitch$(EXEEXT): \
    105         loop.run                                \
    106         function.run                    \
    107         fetch_add.run                   \
    10895        ctxswitch-pthread.run           \
    10996        ctxswitch-cfa_coroutine.run     \
     
    152139## =========================================================================================================
    153140mutex$(EXEEXT) :\
    154         loop.run                        \
    155         function.run            \
    156         fetch_add.run           \
     141        mutex-function.run      \
     142        mutex-fetch_add.run     \
    157143        mutex-pthread_lock.run  \
    158144        mutex-upp.run           \
     
    161147        mutex-cfa4.run          \
    162148        mutex-java_thread.run
     149
     150mutex-function$(EXEEXT):
     151        @@BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     152
     153mutex-fetch_add$(EXEEXT):
     154        @@BACKEND_CC@ mutex/fetch_add.c   -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    163155
    164156mutex-pthread_lock$(EXEEXT):
  • src/benchmark/Makefile.in

    r09ccaf5 r2ee0076  
    505505        @echo "}"
    506506
    507 loop$(EXEEXT):
    508         @@BACKEND_CC@ loop.c      -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    509 
    510 function$(EXEEXT):
    511         @@BACKEND_CC@ function.c  -DBENCH_N=5000000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    512 
    513 fetch_add$(EXEEXT):
    514         @@BACKEND_CC@ fetch_add.c -DBENCH_N=500000000  -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    515 
    516507ctxswitch$(EXEEXT): \
    517         loop.run                                \
    518         function.run                    \
    519         fetch_add.run                   \
    520508        ctxswitch-pthread.run           \
    521509        ctxswitch-cfa_coroutine.run     \
     
    563551
    564552mutex$(EXEEXT) :\
    565         loop.run                        \
    566         function.run            \
    567         fetch_add.run           \
     553        mutex-function.run      \
     554        mutex-fetch_add.run     \
    568555        mutex-pthread_lock.run  \
    569556        mutex-upp.run           \
     
    572559        mutex-cfa4.run          \
    573560        mutex-java_thread.run
     561
     562mutex-function$(EXEEXT):
     563        @@BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     564
     565mutex-fetch_add$(EXEEXT):
     566        @@BACKEND_CC@ mutex/fetch_add.c   -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
    574567
    575568mutex-pthread_lock$(EXEEXT):
  • src/libcfa/concurrency/kernel.c

    r09ccaf5 r2ee0076  
    1616//C Includes
    1717#include <stddef.h>
    18 #include <errno.h>
    1918extern "C" {
    2019#include <stdio.h>
     
    664663        __cfaabi_dbg_print_safe("Kernel : Processor %p ready to sleep\n", this);
    665664
    666         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
    667         int __attribute__((unused)) ret = sem_wait(&idleLock);
    668         verify(ret > 0 || errno == EINTR);
     665        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
     666        sem_wait(&idleLock);
    669667
    670668        __cfaabi_dbg_print_safe("Kernel : Processor %p woke up and ready to run\n", this);
     
    680678void wake(processor * this) {
    681679        __cfaabi_dbg_print_safe("Kernel : Waking up processor %p\n", this);
    682         int __attribute__((unused)) ret = sem_post(&this->idleLock);
    683         verify(ret > 0 || errno == EINTR);
    684         verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 200);
     680        sem_post(&this->idleLock);
     681        verify( ({int sval = 0; sem_getvalue(&this->idleLock, &sval); sval; }) < 65536);
    685682}
    686683
Note: See TracChangeset for help on using the changeset viewer.