1 |
/* Support for periodic syncing |
/* Support for periodic syncing |
2 |
|
|
3 |
Copyright (C) 1995, 96, 99 Free Software Foundation, Inc. |
Copyright (C) 1995,96,99,2002 Free Software Foundation, Inc. |
4 |
|
Written by Miles Bader <miles@gnu.org> |
|
Written by Miles Bader <miles@gnu.ai.mit.edu> |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
67 |
else |
else |
68 |
{ |
{ |
69 |
periodic_sync_thread = |
periodic_sync_thread = |
70 |
cthread_fork ((cthread_fn_t)periodic_sync, (any_t)interval); |
cthread_fork ((cthread_fn_t)periodic_sync, (any_t)(intptr_t)interval); |
71 |
if (periodic_sync_thread) |
if (periodic_sync_thread) |
72 |
cthread_detach (periodic_sync_thread); |
cthread_detach (periodic_sync_thread); |
73 |
else |
else |