cindy13732
Technical User
I am translating C code from the VAX environment to the PC using Borland 6. In the VAX code there are 2 functions called TSKLock and TSKUnlock. They are replaced by EnableTasking and DisableTasking in the Borland environment based on #define statements.
# if (_UNIX || VXWORKS || VAX)
# define SA_Disable TSKLock();
# define SA_Enable TSKUnlock();
# endif
# if (BORLANDC)
# define SA_Disable DisableTasking()
# define SA_Enable EnableTasking()
# endif
# define Enable SA_Enable
# define Disable SA_Disable
I cannot find any of these functions in either environment.
Can anyone tell me where to get them or what is in them, so that I can get my code to compile?
# if (_UNIX || VXWORKS || VAX)
# define SA_Disable TSKLock();
# define SA_Enable TSKUnlock();
# endif
# if (BORLANDC)
# define SA_Disable DisableTasking()
# define SA_Enable EnableTasking()
# endif
# define Enable SA_Enable
# define Disable SA_Disable
I cannot find any of these functions in either environment.
Can anyone tell me where to get them or what is in them, so that I can get my code to compile?