]> hackdaworld.org Git - physik/posic.git/blobdiff - moldyn.h
pthread imp started for orig albe (more easier in the beginning)
[physik/posic.git] / moldyn.h
index 31794c898f2eed1e5faf5b4d0146a07892af706b..6fda9ceef79e9853c0967c31004a59240e83c820 100644 (file)
--- a/moldyn.h
+++ b/moldyn.h
@@ -117,8 +117,12 @@ typedef struct s_moldyn {
        int (*func3b_j1)(struct s_moldyn *moldyn,t_atom *ai,t_atom *aj,u8 bc);
        int (*func3b_j2)(struct s_moldyn *moldyn,t_atom *ai,t_atom *aj,u8 bc);
        int (*func3b_j3)(struct s_moldyn *moldyn,t_atom *ai,t_atom *aj,u8 bc);
+#ifdef PTHREADS
+       void *(*func3b_k1)(void *ptr);
+#else
        int (*func3b_k1)(struct s_moldyn *moldyn,
                         t_atom *ai,t_atom *aj,t_atom *ak,u8 bck);
+#endif
        int (*func3b_k2)(struct s_moldyn *moldyn,
                         t_atom *ai,t_atom *aj,t_atom *ak,u8 bck);
        void *pot_params;