Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/s/psychopy-HEAD/psychopy/iohub/devices/__init__.py   psychopy(Download)
                gc.disable()
            if Computer.system=='win32':
                Computer.currentProcess.set_nice(psutil.HIGH_PRIORITY_CLASS)
                Computer.inHighPriorityMode=True
            elif Computer.system=='linux2':

src/p/r/Printrun-HEAD/printrun/power/__init__.py   Printrun(Download)
    def set_priority():
        set_nice(10 if platform.system() != "Windows" else psutil.HIGH_PRIORITY_CLASS)
 
    def reset_priority():
        set_nice(0 if platform.system() != "Windows" else psutil.NORMAL_PRIORITY_CLASS)

src/i/o/ioHub-HEAD/iohub/devices/__init__.py   ioHub(Download)
                gc.disable()
            if Computer.system=='win32':
                Computer.currentProcess.set_nice(psutil.HIGH_PRIORITY_CLASS)
                Computer.inHighPriorityMode=True
            elif Computer.system=='linux2':

src/p/s/psutil-HEAD/test/test_psutil.py   psutil(Download)
            try:
                self.assertEqual(p.get_nice(), psutil.NORMAL_PRIORITY_CLASS)
                p.set_nice(psutil.HIGH_PRIORITY_CLASS)
                self.assertEqual(p.get_nice(), psutil.HIGH_PRIORITY_CLASS)
                p.set_nice(psutil.NORMAL_PRIORITY_CLASS)

src/p/s/psutil-2.1.1/test/test_psutil.py   psutil(Download)
            try:
                self.assertEqual(p.nice(), psutil.NORMAL_PRIORITY_CLASS)
                p.nice(psutil.HIGH_PRIORITY_CLASS)
                self.assertEqual(p.nice(), psutil.HIGH_PRIORITY_CLASS)
                p.nice(psutil.NORMAL_PRIORITY_CLASS)