FreeRDP
wait.c File Reference
#include <sys/select.h>
#include <assert.h>
#include <errno.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/platform.h>
#include "synch.h"
#include "../thread/thread.h"
#include <winpr/thread.h>
#include <winpr/debug.h>
#include "../log.h"
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <sys/wait.h>
#include "../handle/handle.h"
#include "../pipe/pipe.h"
#include <pthread.h>

Macros

#define TAG   WINPR_TAG("sync.wait")
 

Functions

static long long ts_difftime (const struct timespec *o, const struct timespec *n)
 
static int pthread_mutex_timedlock (pthread_mutex_t *mutex, const struct timespec *timeout)
 
static void ts_add_ms (struct timespec *ts, DWORD dwMilliseconds)
 
static int waitOnFd (int fd, ULONG mode, DWORD dwMilliseconds)
 
DWORD WaitForSingleObject (HANDLE hHandle, DWORD dwMilliseconds)
 
DWORD WaitForSingleObjectEx (HANDLE hHandle, DWORD dwMilliseconds, BOOL bAlertable)
 
DWORD WaitForMultipleObjects (DWORD nCount, const HANDLE *lpHandles, BOOL bWaitAll, DWORD dwMilliseconds)
 
DWORD WaitForMultipleObjectsEx (DWORD nCount, const HANDLE *lpHandles, BOOL bWaitAll, DWORD dwMilliseconds, BOOL bAlertable)
 
DWORD SignalObjectAndWait (HANDLE hObjectToSignal, HANDLE hObjectToWaitOn, DWORD dwMilliseconds, BOOL bAlertable)
 

Macro Definition Documentation

#define TAG   WINPR_TAG("sync.wait")

WinPR: Windows Portable Runtime Synchronization Functions

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2014 Hardening conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

static int pthread_mutex_timedlock ( pthread_mutex_t *  mutex,
const struct timespec *  timeout 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

DWORD SignalObjectAndWait ( HANDLE  hObjectToSignal,
HANDLE  hObjectToWaitOn,
DWORD  dwMilliseconds,
BOOL  bAlertable 
)

Here is the call graph for this function:

static void ts_add_ms ( struct timespec *  ts,
DWORD  dwMilliseconds 
)
static

Here is the caller graph for this function:

static long long ts_difftime ( const struct timespec *  o,
const struct timespec *  n 
)
static

WaitForSingleObject WaitForSingleObjectEx WaitForMultipleObjectsEx SignalObjectAndWait

Here is the caller graph for this function:

DWORD WaitForMultipleObjects ( DWORD  nCount,
const HANDLE *  lpHandles,
BOOL  bWaitAll,
DWORD  dwMilliseconds 
)

Here is the call graph for this function:

Here is the caller graph for this function:

DWORD WaitForMultipleObjectsEx ( DWORD  nCount,
const HANDLE *  lpHandles,
BOOL  bWaitAll,
DWORD  dwMilliseconds,
BOOL  bAlertable 
)

Here is the call graph for this function:

Here is the caller graph for this function:

DWORD WaitForSingleObject ( HANDLE  hHandle,
DWORD  dwMilliseconds 
)

Here is the call graph for this function:

DWORD WaitForSingleObjectEx ( HANDLE  hHandle,
DWORD  dwMilliseconds,
BOOL  bAlertable 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static int waitOnFd ( int  fd,
ULONG  mode,
DWORD  dwMilliseconds 
)
static

Here is the caller graph for this function: