소스 검색

Store pointer in init_thread (See #534) (Step 3/3)

bel2125 6 년 전
부모
커밋
6fec72314a
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      include/civetweb.h

+ 5 - 4
include/civetweb.h

@@ -348,6 +348,11 @@ struct mg_callbacks {
 	     ctx: context handle */
 	void (*init_context)(const struct mg_context *ctx);
 
+	/* Called when civetweb context is deleted.
+	Parameters:
+	ctx: context handle */
+	void(*exit_context)(const struct mg_context *ctx);
+
 	/* Called when a new worker thread is initialized.
 	 * Parameters:
 	 *   ctx: context handle
@@ -376,10 +381,6 @@ struct mg_callbacks {
 	                    int thread_type,
 	                    void *thread_pointer);
 
-	/* Called when civetweb context is deleted.
-	   Parameters:
-	     ctx: context handle */
-	void (*exit_context)(const struct mg_context *ctx);
 
 	/* Called when initializing a new connection object.
 	 * Can be used to initialize the connection specific user data