Questions tagged [suspend]
469 questions
3
votes
4 answers
How to schedule a Google Compute Engine to be on only at specific times
I want to build a Google Compute Engine to act as a build server and a utility server. At 11pm I want it to run a deploy script (requiring build tools, pull from github, deploy to Heroku), a task that require maybe ten minutes to run; then at 1am,…

Purplejacket
- 1,808
- 2
- 25
- 43
3
votes
1 answer
Suspend Particles in CAEmitterLayer
I have the following code that adds particles to a UIView named ParentView at the center of some other UIView:
CAEmitterLayer *emitterLayer = [CAEmitterLayer layer];
emitterLayer.emitterPosition = CGPointMake(view.center.x, view.center.y -…

Hahnemann
- 4,378
- 6
- 40
- 64
3
votes
1 answer
How to create suspended process from c# without P/Invoke?
WinAPI CreateProcess has the flag CREATE_SUSPENDED so it's possible to attach process to JobObject before it has done something and then to call ResumeThread for its main thread. The only that I found searching for a solution is this post written 11…

SerG
- 1,251
- 4
- 18
- 37
3
votes
1 answer
Windows Service OnPowerEvent
I am trying to implement a windows service that sends a message when the system goes into standby mode (sleep). My test machine OS is a Windows 8 pro. The service has CanHandlePowerEvents=true and OnPowerEvent overwritten and it indeed receives…

user3126934
- 31
- 2
3
votes
1 answer
SGE / UGE suspend running jobs
I'm aware, one can suspend running jobs by qmod -sj [jobid] command and in principal that works. Which means the jobs go to suspend (s) state -- fine so far, but:
I expected that if I put all running jobs to suspend state and qsub new ones to GE or…

Rulf
- 31
- 1
- 3
3
votes
1 answer
Does CallNtPowerInformation(SystemPowerInfomation...) work on WIndows XP?
I'm trying to access the "TimeRemaining" value for the power management idle counter. Google search indicates that lots of folks (including me) can get a value once, but every subsequent call gives the same results. No countdown, no change in…

dscottm
- 61
- 4
3
votes
1 answer
How to check whether any UIBackgroundTask is active through out the app?
I am using beginBackgroundTaskWithExpirationHandler at many places in my app whenever it's necessary to complete a task and I do endBackgroundTask when the task is over.
There are some crucial parts of my code where i want to know whether the app…

TheCommonEngineer
- 499
- 8
- 15
3
votes
2 answers
Entering sleep mode on arm cortex m4
I'm trying to put a cortex m4 processor to sleep for a little less than a second. I want to be able to tell it to sleep, then a second later, or when a button is pressed, pick up right where I left off. I've looked in the reference manual and VLPS…

robostork
- 33
- 1
- 4
3
votes
1 answer
Setting the suspend timeout cross-window manager
For a project I'm currently working on, I would like to be able to set the interval after which the operating system (not just the display) goes into standby mode (ACPI s3 or s4). One of the options is to set this in the window manager, but for our…

Ruurtjan Pul
- 1,197
- 1
- 10
- 21
3
votes
1 answer
SuspensionManager Error when application has more than 1 page in windows 8 XAML/C# app
I'm writing a windows 8 XAML/C# app and have a little problem with the session manager.
Within my App.xaml.cs my OnSuspending method looks like this:
private async void OnSuspending(object sender, SuspendingEventArgs e)
{
var…

Sun
- 4,458
- 14
- 66
- 108
3
votes
4 answers
Resuming C# threads
Possible duplicate question: Is there a way to indefinitely pause a thread?
In my code i do the below
Thread mainThread
//...
mainThread.Resume();
void StartThread()
{
while (!wantQuit)
{
db.runEmail();
…
user34537
3
votes
1 answer
JScript Wait function
I have a function written in JScript (Not javascript) I need to suspend until a certain global variable becomes true.
The global variable is changed to true when another function is called after an ajax response:
function(req, event, data) {
…

Eldad
- 1,067
- 16
- 36
3
votes
1 answer
How to use waitHandle in vb.net
I have VS2010 and I'm working on a windows form application.
So, I have threads created dynamically (depending on user input), the processing for these threads can take quiet a while (days in extreme cases). So I've put a button on the form and want…

FraserOfSmeg
- 1,128
- 2
- 23
- 41
3
votes
3 answers
Alternative to Thread.Suspend() method
Thread.Suspend() method is obsolete as you know. I want to suspend thread immidiately when button click event comes. I used Thread.Suspend() and it works perfect but everyone suggest that using Thread.Suspend() method is not a good method to suspend…

sanchop22
- 2,729
- 12
- 43
- 66
2
votes
4 answers
Terminate loopless thread instantly without Abort or Suspend
I am implementing a protocol library. Here a simplified description.
The main thread within the main function will always check, whether some data is available on the the networkstream (within a tcpclient). Let us say response is the received…

Vladimir S.
- 450
- 2
- 10
- 23