Set mxnet cpp lib to run in single thread

Hello, all
We found that a way to limit threads usage for mxnet c_api is to set the environment variables.
But if there another way without using environment variables to limit threads usage.
Is it possible to compile mxnet.so as a single-threaded library?