LibreOffice Module cppu (master) 1
Classes | Namespaces | Typedefs | Functions | Variables
threadpool.cxx File Reference
#include <sal/config.h>
#include <cassert>
#include <chrono>
#include <algorithm>
#include <utility>
#include <unordered_map>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <uno/threadpool.h>
#include "threadpool.hxx"
#include "thread.hxx"
Include dependency graph for threadpool.cxx:

Go to the source code of this file.

Classes

struct  _uno_ThreadPool
 

Namespaces

namespace  cppu_threadpool
 

Typedefs

typedef std::unordered_map< uno_ThreadPool, ThreadPoolHolder, uno_ThreadPool_Hash, uno_ThreadPool_Equal > ThreadpoolHashSet
 

Functions

uno_ThreadPool SAL_CALL uno_threadpool_create () SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_attach (uno_ThreadPool hPool) SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_enter (uno_ThreadPool hPool, void **ppJob) SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_detach (SAL_UNUSED_PARAMETER uno_ThreadPool) SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_putJob (uno_ThreadPool hPool, sal_Sequence *pThreadId, void *pJob, void(SAL_CALL *doRequest)(void *pThreadSpecificData), sal_Bool bIsOneway) SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_dispose (uno_ThreadPool hPool) SAL_THROW_EXTERN_C()
 
void SAL_CALL uno_threadpool_destroy (uno_ThreadPool hPool) SAL_THROW_EXTERN_C()
 

Variables

static ThreadpoolHashSetg_pThreadpoolHashSet
 

Typedef Documentation

◆ ThreadpoolHashSet

typedef std::unordered_map< uno_ThreadPool, ThreadPoolHolder, uno_ThreadPool_Hash, uno_ThreadPool_Equal > ThreadpoolHashSet

Definition at line 346 of file threadpool.cxx.

Function Documentation

◆ uno_threadpool_attach()

void SAL_CALL uno_threadpool_attach ( uno_ThreadPool  hPool)

◆ uno_threadpool_create()

uno_ThreadPool SAL_CALL uno_threadpool_create ( )

Definition at line 369 of file threadpool.cxx.

References g_pThreadpoolHashSet, h, and p.

◆ uno_threadpool_destroy()

void SAL_CALL uno_threadpool_destroy ( uno_ThreadPool  hPool)

Definition at line 444 of file threadpool.cxx.

References g_pThreadpoolHashSet, p, and SAL_THROW_EXTERN_C.

◆ uno_threadpool_detach()

void SAL_CALL uno_threadpool_detach ( SAL_UNUSED_PARAMETER  uno_ThreadPool)

Definition at line 415 of file threadpool.cxx.

References SAL_THROW_EXTERN_C.

◆ uno_threadpool_dispose()

void SAL_CALL uno_threadpool_dispose ( uno_ThreadPool  hPool)

Definition at line 437 of file threadpool.cxx.

References SAL_THROW_EXTERN_C.

◆ uno_threadpool_enter()

void SAL_CALL uno_threadpool_enter ( uno_ThreadPool  hPool,
void **  ppJob 
)

◆ uno_threadpool_putJob()

void SAL_CALL uno_threadpool_putJob ( uno_ThreadPool  hPool,
sal_Sequence pThreadId,
void *  pJob,
void(SAL_CALL *doRequest)(void *pThreadSpecificData)  ,
sal_Bool  bIsOneway 
)

Definition at line 421 of file threadpool.cxx.

References SAL_THROW_EXTERN_C, and SAL_WARN.

Variable Documentation

◆ g_pThreadpoolHashSet

ThreadpoolHashSet* g_pThreadpoolHashSet
static

Definition at line 348 of file threadpool.cxx.

Referenced by uno_threadpool_create(), and uno_threadpool_destroy().