#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <pthread.h>
#include <stdio.h>
Go to the source code of this file.
◆ ECPGdebug
#define ECPGdebug |
( |
|
X, |
|
|
|
Y |
|
) |
| ECPGdebug((X)+100,(Y)) |
◆ PGDLLIMPORT
◆ POSTGRES_SQLCA_H
◆ REPEATS
◆ sqlca
◆ SQLERRMC_LEN
◆ THREADS
◆ ECPGget_sqlca()
struct sqlca_t* ECPGget_sqlca |
( |
void |
| ) |
|
Definition at line 108 of file misc.c.
static pthread_key_t sqlca_key
void ecpg_init_sqlca(struct sqlca_t *sqlca)
static void ecpg_sqlca_key_init(void)
static pthread_once_t sqlca_key_once
void * pthread_getspecific(pthread_key_t key)
void pthread_setspecific(pthread_key_t key, void *val)
◆ fn()
static void* fn |
( |
void * |
arg | ) |
|
|
static |
◆ main()
Definition at line 128 of file thread-descriptor.c.
141 threads[
i] = (HANDLE)_beginthreadex(NULL, 0,
fn, NULL, 0, &
id);
144 WaitForMultipleObjects(
THREADS, threads, TRUE, INFINITE);
146 CloseHandle(threads[
i]);
149 pthread_create(&threads[
i], NULL,
fn, NULL);
151 pthread_join(threads[
i], NULL);
static void * fn(void *arg)
References fn(), i, and THREADS.