search for: get_my_prior

Displaying 1 result from an estimated 1 matches for "get_my_prior".

2005 Jan 21
1
niceness
...do I deal with that? I want to submit as contributed package to CRAN. The whole package can be found at http://www.stat.umn.edu/geyer/nice_0.1.tar.gz ----- begin C code file ----- #include <sys/resource.h> #include <errno.h> #include <string.h> #include <R.h> void get_my_priority(int *result) { errno = 0; result[0] = getpriority(PRIO_PROCESS, 0); if (errno != 0) warning(strerror(errno)); } void set_my_priority(int *priority) { if (setpriority(PRIO_PROCESS, 0, priority[0]) != 0) warning(strerror(errno)); } ------ end C code file ------ -...