Changeset c887fde77c277647250c783fcb921a15a708f844
- Timestamp:
- 01/10/07 20:11:03
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1191262263 +0000
- git-parent:
[e8d03d1408b0cf0b7490a4889551a0531af5e2af]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1191262263 +0000
- Message:
Cleanup previous commit
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re8d03d1 |
rc887fde |
|
| 1063 | 1063 | goto error; |
|---|
| 1064 | 1064 | |
|---|
| | 1065 | vlc_object_lock( host ); |
|---|
| | 1066 | if( vlc_object_waitpipe( host ) == -1 ) |
|---|
| | 1067 | { |
|---|
| | 1068 | vlc_object_unlock( host ); |
|---|
| | 1069 | goto error; |
|---|
| | 1070 | } |
|---|
| | 1071 | vlc_object_unlock( host ); |
|---|
| | 1072 | |
|---|
| 1065 | 1073 | host->httpd = httpd; |
|---|
| 1066 | 1074 | vlc_mutex_init( httpd, &host->lock ); |
|---|
| … | … | |
| 2016 | 2024 | counter_t *p_total_counter = stats_CounterCreate( host, VLC_VAR_INTEGER, STATS_COUNTER ); |
|---|
| 2017 | 2025 | counter_t *p_active_counter = stats_CounterCreate( host, VLC_VAR_INTEGER, STATS_COUNTER ); |
|---|
| | 2026 | int evfd; |
|---|
| 2018 | 2027 | vlc_bool_t b_die = VLC_FALSE; |
|---|
| | 2028 | |
|---|
| | 2029 | vlc_object_lock( host ); |
|---|
| | 2030 | evfd = vlc_object_waitpipe( host ); |
|---|
| | 2031 | vlc_object_unlock( host ); |
|---|
| 2019 | 2032 | |
|---|
| 2020 | 2033 | while( !b_die ) |
|---|
| … | … | |
| 2415 | 2428 | b_low_delay = VLC_TRUE; |
|---|
| 2416 | 2429 | } |
|---|
| 2417 | | |
|---|
| 2418 | | vlc_object_lock( host ); |
|---|
| 2419 | | int evfd = ufd[nfd].fd = vlc_object_waitpipe( host ); |
|---|
| 2420 | | if( ufd[nfd].fd != -1 ) |
|---|
| 2421 | | { |
|---|
| 2422 | | ufd[nfd].events = POLLIN; |
|---|
| 2423 | | ufd[nfd].revents = 0; |
|---|
| 2424 | | nfd++; |
|---|
| 2425 | | } |
|---|
| 2426 | | vlc_object_unlock( host ); |
|---|
| 2427 | 2430 | vlc_mutex_unlock( &host->lock ); |
|---|
| | 2431 | |
|---|
| | 2432 | ufd[nfd].fd = evfd; |
|---|
| | 2433 | ufd[nfd].events = POLLIN; |
|---|
| | 2434 | ufd[nfd].revents = 0; |
|---|
| | 2435 | nfd++; |
|---|
| 2428 | 2436 | |
|---|
| 2429 | 2437 | /* we will wait 20ms (not too big) if HTTPD_CLIENT_WAITING */ |
|---|
| … | … | |
| 2442 | 2450 | |
|---|
| 2443 | 2451 | vlc_object_lock( host ); |
|---|
| 2444 | | if( ( evfd != -1 ) && ( ufd[nfd - 1].revents ) ) |
|---|
| | 2452 | if( ufd[nfd - 1].revents ) |
|---|
| 2445 | 2453 | b_die = vlc_object_wait( host ); |
|---|
| 2446 | 2454 | vlc_object_unlock( host ); |
|---|