Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b3ab9b45
Commit
b3ab9b45
authored
Oct 03, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress compiler warning in non-threaded build.
parent
6cbb2353
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/descriptor.c
+7
-2
No files found.
src/interfaces/ecpg/ecpglib/descriptor.c
View file @
b3ab9b45
/* dynamic SQL support routines
/* dynamic SQL support routines
*
*
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.2
6 2007/10/03 11:11:12 meskes
Exp $
* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/descriptor.c,v 1.2
7 2007/10/03 16:03:25 tgl
Exp $
*/
*/
#define POSTGRES_ECPG_INTERNAL
#define POSTGRES_ECPG_INTERNAL
...
@@ -16,13 +16,14 @@
...
@@ -16,13 +16,14 @@
#include "sql3types.h"
#include "sql3types.h"
static
void
descriptor_free
(
struct
descriptor
*
desc
);
static
void
descriptor_free
(
struct
descriptor
*
desc
);
static
void
descriptor_deallocate_all
(
struct
descriptor
*
list
);
/* We manage descriptors separately for each thread. */
/* We manage descriptors separately for each thread. */
#ifdef ENABLE_THREAD_SAFETY
#ifdef ENABLE_THREAD_SAFETY
static
pthread_key_t
descriptor_key
;
static
pthread_key_t
descriptor_key
;
static
pthread_once_t
descriptor_once
=
PTHREAD_ONCE_INIT
;
static
pthread_once_t
descriptor_once
=
PTHREAD_ONCE_INIT
;
static
void
descriptor_deallocate_all
(
struct
descriptor
*
list
);
static
void
static
void
descriptor_destructor
(
void
*
arg
)
descriptor_destructor
(
void
*
arg
)
{
{
...
@@ -653,6 +654,8 @@ ECPGdeallocate_desc(int line, const char *name)
...
@@ -653,6 +654,8 @@ ECPGdeallocate_desc(int line, const char *name)
return
false
;
return
false
;
}
}
#ifdef ENABLE_THREAD_SAFETY
/* Deallocate all descriptors in the list */
/* Deallocate all descriptors in the list */
static
void
static
void
descriptor_deallocate_all
(
struct
descriptor
*
list
)
descriptor_deallocate_all
(
struct
descriptor
*
list
)
...
@@ -665,6 +668,8 @@ descriptor_deallocate_all(struct descriptor *list)
...
@@ -665,6 +668,8 @@ descriptor_deallocate_all(struct descriptor *list)
}
}
}
}
#endif
/* ENABLE_THREAD_SAFETY */
bool
bool
ECPGallocate_desc
(
int
line
,
const
char
*
name
)
ECPGallocate_desc
(
int
line
,
const
char
*
name
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment