• [^] # Re: plus de renseignements ?

    Posté par . En réponse au message erreur compil Mutex. Évalué à 1.

    voila:
    static const char* const Mutex_cxx_Version =
    "$Id: Mutex.cxx,v 1.2 2001年08月10日 04:02:08 icahoon Exp $";



    #include "Mutex.hxx"
    #include "global.h"
    #include
    #include
    #include



    using Vocal::Threads::Mutex;
    using Vocal::ReturnCode;
    using Vocal::SUCCESS;


    Mutex::Mutex()
    {

    myId = PTHREAD_MUTEX_INITIALIZER ;
    ReturnCode rc = vmutex_init(&myId);
    assert( rc != EINVAL);
    assert( rc != EBUSY);
    assert( rc != ENOMEM);
    assert( rc != EAGAIN);
    assert( rc == SUCCESS );
    }


    Mutex::~Mutex ()
    {

    ReturnCode rc = vmutex_destroy(&myId);
    assert( rc != EBUSY ); // currently locked
    assert( rc == SUCCESS );

    }

    on ne voit pas d'erreur de syntaxe... !!?