Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
3b6ed808
Commit
3b6ed808
authored
Dec 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tentative hack for OSX msleep/mwait cancellation
parent
db8c1967
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
src/misc/mtime.c
src/misc/mtime.c
+20
-1
No files found.
src/misc/mtime.c
View file @
3b6ed808
...
...
@@ -350,6 +350,25 @@ void mwait( mtime_t date )
}
vlc_testcancel
();
#elif defined( __APPLE__ )
/* Explicit hack: OSX does not cancel at nanosleep() */
struct
vlc_mutex_t
lock
;
struct
vlc_cond_t
wait
;
vlc_mutex_init
(
&
lock
);
vlc_cond_init
(
&
wait
);
vlc_mutex_lock
(
&
lock
);
vlc_cleanup_push
(
vlc_mutex_destroy
,
&
lock
);
vlc_cleanup_push
(
vlc_cond_destroy
,
&
wait
);
vlc_cleanup_push
(
vlc_mutex_unlock
,
&
lock
);
vlc_cond_timedwait
(
&
wait
,
&
lock
,
date
);
vlc_cleanup_run
();
vlc_cleanup_run
();
vlc_cleanup_run
();
#else
mtime_t
delay
=
date
-
mdate
();
if
(
delay
>
0
)
...
...
@@ -398,7 +417,7 @@ void msleep( mtime_t delay )
#elif defined( HAVE_KERNEL_OS_H )
snooze
(
delay
);
#elif defined( WIN32 ) || defined( UNDER_CE )
#elif defined( WIN32 ) || defined( UNDER_CE )
|| defined( __APPLE__ )
mwait
(
mdate
()
+
delay
);
#elif defined( HAVE_NANOSLEEP )
...
...
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