nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Compiling NeL on debian woody + error during compilation


From: David Mentre
Subject: Re: [Nel] Compiling NeL on debian woody + error during compilation
Date: 05 Jan 2002 23:02:07 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

David Mentre <address@hidden> writes:

> mutex.cpp:246: `PTHREAD_MUTEX_FAST_NP' undeclared (first use this function)

Ok. I've finally compiled nel/ with the following hack:
CUnfairMutex::CUnfairMutex(const std::string &name)
{
//      pthread_mutexattr_t attr;
//      pthread_mutexattr_init( &attr );
//      // Fast mutex. Note: on Windows all mutexes are recursive
//      pthread_mutexattr_setkind_np( &attr, PTHREAD_MUTEX_FAST_NP ); 
//PTHREAD_MUTEX_ERRORCHECK_NP );//PTHREAD_MUTEX_ADAPTIVE_NP 
);//PTHREAD_MUTEX_RECURSIVE_NP );
        pthread_mutex_init( &mutex, NULL );
        //      pthread_mutexattr_destroy( &attr );
}

 It comments everything except the pthread_mutex_init() call. I don't
 know why the original code doesn't work.

Next steps nelns and snowball2. :)

d.
-- 
 address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]