Bladeren bron

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

bel2125 6 jaren geleden
bovenliggende
commit
6fec72314a
1 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 5 4
      include/civetweb.h

+ 5 - 4
include/civetweb.h

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