Go to advanced search

by PaxToYou
Mon Jan 19, 2015 10:17 pm
Forum: General discussion
Topic: How to modify the behaviour of the "halt" command
Replies: 5
Views: 1071

How to modify the behaviour of the "halt" command

Hi all! I would like to modify the behaviour of the command "halt" which is been created to shutdown the raspberry system in a safe way. The natural behaviour of the "halt" command is: - to dismount everything (action A) and than - program the raspberry hw to do not use anymore the power (action B)....
by PaxToYou
Thu Oct 30, 2014 10:56 am
Forum: Advanced users
Topic: pthread_cond_timedwait seems exit without wait
Replies: 1
Views: 593

Re: pthread_cond_timedwait seems exit without wait

I've found a little bit more of information. The time specified in the call doen't have as origin the moment when the call is done but it is relative to the value returned by the clock_gettime system call. A good example (copied from http://pubs.opengroup.org/onlinepubs/9699919799) is the following:...
by PaxToYou
Wed Oct 29, 2014 10:02 pm
Forum: Advanced users
Topic: pthread_cond_timedwait seems exit without wait
Replies: 1
Views: 593

pthread_cond_timedwait seems exit without wait

Dear all, I'm trying to use the pthread_cond_timedwait but this call seems not to be able to suspend the execution and always ends returning ETIMEDOUT. I've created the condition with the default value for attributes (pthread_cond_init (&mbx->cond, NULL)) also why seems to be impossible set a differ...

Go to advanced search