Does FOG have a timetick event?



  • I’m trying to make a plugin that scans a folder periodically to detect any addition/removal of files. The problem is, when I try to implement this functionality with a simple while(true)-loop and sleep(), FOG completely stops working. Does FOG have some sort of TimeTick-Event that I can use for this mechanism?

    Thanks. :)



  • @Jbob Yes, spawning a new thread was what I was going to try out next. Thanks for the help. :D


  • Senior Developer

    @Asthea not that I am aware of. You could spawn a new thread that makes a local timetick event. Or you could make it as a Service, which would prevent any web portal freezing altogether.


Log in to reply
 

377
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.