-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
execute thumb extractor action in an different process
- Loading branch information
1 parent
9cf6156
commit 31fd119
Showing
5 changed files
with
711 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (C) 2011 Wandenberg Peixoto <wandenberg@gmail.com> | ||
* | ||
* This file is part of Nginx Video Thumb Extractor Module. | ||
* | ||
* Nginx Video Thumb Extractor Module is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Nginx Video Thumb Extractor Module is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Nginx Video Thumb Extractor Module. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* | ||
* ngx_http_video_thumbextractor_module_utils.h | ||
* | ||
* Created: Nov 22, 2011 | ||
* Author: Wandenberg Peixoto <wandenberg@gmail.com> | ||
* | ||
*/ | ||
#ifndef NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_IPC_H_ | ||
#define NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_IPC_H_ | ||
|
||
#include <ngx_http_video_thumbextractor_module.h> | ||
|
||
typedef struct { | ||
ngx_socket_t pipefd[2]; | ||
ngx_connection_t *conn; | ||
ngx_pid_t pid; | ||
ngx_flag_t processing; | ||
ngx_http_request_t *request; | ||
ngx_int_t slot; | ||
} ngx_http_video_thumbextractor_ipc_t; | ||
|
||
|
||
ngx_queue_t *ngx_http_video_thumbextractor_module_extract_queue; | ||
|
||
ngx_http_video_thumbextractor_ipc_t ngx_http_video_thumbextractor_module_ipc_ctxs[NGX_MAX_PROCESSES]; | ||
|
||
void ngx_http_video_thumbextractor_module_ensure_extractor_process(void); | ||
|
||
#endif /* NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_IPC_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.