]> git.lizzy.rs Git - dragonblocks-bedrock.git/blobdiff - src/threads.h
Upload Files
[dragonblocks-bedrock.git] / src / threads.h
index e8fce5b55884e57ec085930c9f80f889de30890f..303c96a599217e2540cca73bcc0ff489783a0222 100644 (file)
@@ -1,17 +1,19 @@
 #ifndef _THREADS_H_
 #define _THREADS_H_
 
-#define MAP_BACKUP_INTERVAL 15
+#define BACKUP_INTERVAL 60
+#define PHYSIC_TIME_TICK 1000000/100
 
 class Threads{
        public:
-               static void startMapBackupThread();
-               static void addSignalHandlers();
-               static void startGraphicUpdateThread();
-       private:
-               static void *mapBackupThread(void *);
-               static void *graphicUpdateThread(void *);
-               static void signal_handler(int);
+               static void add_signal_handlers();
+               static void signal_handler(int);                
+               static void start(void *(*)(void *));
+               static void *worldBackupThread(void *);
+               static void *graphicRedrawThread(void *);
+               static void *modRuntimeThread(void *);
+               static void *entityPhysicsThread(void *);
+               static void *timeThread(void *);
 };
 #endif