Hi Sam,
>> I try to use timeline to be a time for every one second. When my
> >> project is running, I try to change the system date or time. The
> >> program is down. How do I do? Any other timer or function?
>
If the resolution is one second, I'd use pthread + sleep to do the job, no
need to use ClutterTimeline. Attached is a quick example. FYI.
Best Regards,
Tonny
#include <stdio.h>
#include <pthread.h>
void *handler (void *argv)
{
int count = 0;
while (1) {
printf("Hello [%d]\n", count++);
sleep(1);
}
}
int main (int argc, char *argv[])
{
pthread_t thread;
pthread_attr_t attr;
pthread_attr_init(&attr);
if (pthread_create(&thread, &attr, handler, NULL) == 0) {
pthread_join(thread, NULL);
}
return 0;
}
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org
once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists