vdif() { short *intin; static short s_intin[16][2048]; static int cnt = -1; cnt++; intin = s_inin[cnt]; call_vdi(); cnt--; } So here 16 threads would be able to use this function simultaneously.
Maybe not very safe. What about locking? -- Helmut Karlowski