Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5d548333
Commit
5d548333
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: os_event_create_auto(): Unused, remove.
parent
d14628a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
53 deletions
+0
-53
include/os0sync.h
include/os0sync.h
+0
-12
os/os0sync.c
os/os0sync.c
+0
-41
No files found.
include/os0sync.h
View file @
5d548333
...
...
@@ -128,18 +128,6 @@ os_event_create(
/*============*/
const
char
*
name
);
/*!< in: the name of the event, if NULL
the event is created without a name */
#ifdef __WIN__
/*********************************************************//**
Creates an auto-reset event semaphore, i.e., an event which is automatically
reset when a single thread is released. Works only in Windows.
@return the event handle */
UNIV_INTERN
os_event_t
os_event_create_auto
(
/*=================*/
const
char
*
name
);
/*!< in: the name of the event, if NULL
the event is created without a name */
#endif
/**********************************************************//**
Sets an event semaphore to the signaled state: lets waiting threads
proceed. */
...
...
os/os0sync.c
View file @
5d548333
...
...
@@ -196,47 +196,6 @@ os_event_create(
return
(
event
);
}
#ifdef __WIN__
/*********************************************************//**
Creates an auto-reset event semaphore, i.e., an event which is automatically
reset when a single thread is released. Works only in Windows.
@return the event handle */
UNIV_INTERN
os_event_t
os_event_create_auto
(
/*=================*/
const
char
*
name
)
/*!< in: the name of the event, if NULL
the event is created without a name */
{
os_event_t
event
;
event
=
ut_malloc
(
sizeof
(
struct
os_event_struct
));
event
->
handle
=
CreateEvent
(
NULL
,
/* No security attributes */
FALSE
,
/* Auto-reset */
FALSE
,
/* Initial state nonsignaled */
(
LPCTSTR
)
name
);
if
(
!
event
->
handle
)
{
fprintf
(
stderr
,
"InnoDB: Could not create a Windows auto"
" event semaphore; Windows error %lu
\n
"
,
(
ulong
)
GetLastError
());
}
/* Put to the list of events */
os_mutex_enter
(
os_sync_mutex
);
UT_LIST_ADD_FIRST
(
os_event_list
,
os_event_list
,
event
);
os_event_count
++
;
os_mutex_exit
(
os_sync_mutex
);
return
(
event
);
}
#endif
/**********************************************************//**
Sets an event semaphore to the signaled state: lets waiting threads
proceed. */
...
...
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