Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
91f4cb0e
Vérifiée
Valider
91f4cb0e
rédigé
Il y a 5 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Init mthread in lektord
parent
8397618e
Branches
Branches contenant la validation
Étiquettes
Étiquettes contenant la validation
1 requête de fusion
!67
Resolve "Thread pool"
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
inc/mthread/mthread.h
+0
-12
0 ajout, 12 suppressions
inc/mthread/mthread.h
src/main/server.c
+2
-0
2 ajouts, 0 suppression
src/main/server.c
avec
2 ajouts
et
12 suppressions
inc/mthread/mthread.h
+
0
−
12
Voir le fichier @
91f4cb0e
...
@@ -73,21 +73,9 @@ int mthread_cond_wait(mthread_cond_t *__cond, mthread_mutex_t *__mutex);
...
@@ -73,21 +73,9 @@ int mthread_cond_wait(mthread_cond_t *__cond, mthread_mutex_t *__mutex);
/* Functions for handling thread-specific data. */
/* Functions for handling thread-specific data. */
/* Create a key value identifying a location in the thread-specific
data area. Each thread maintains a distinct thread-specific data
area. DESTR_FUNCTION, if non-NULL, is called with the value
associated to that key when the key is destroyed.
DESTR_FUNCTION is not called if the value associated is NULL when
the key is destroyed. */
int
mthread_key_create
(
mthread_key_t
*
__key
,
void
(
*
__destr_function
)
(
void
*
));
int
mthread_key_create
(
mthread_key_t
*
__key
,
void
(
*
__destr_function
)
(
void
*
));
/* Destroy KEY. */
int
mthread_key_delete
(
mthread_key_t
__key
);
int
mthread_key_delete
(
mthread_key_t
__key
);
/* Store POINTER in the thread-specific data slot identified by KEY. */
int
mthread_setspecific
(
mthread_key_t
__key
,
const
void
*
__pointer
);
int
mthread_setspecific
(
mthread_key_t
__key
,
const
void
*
__pointer
);
/* Return current value of the thread-specific data slot identified by KEY. */
void
*
mthread_getspecific
(
mthread_key_t
__key
);
void
*
mthread_getspecific
(
mthread_key_t
__key
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/main/server.c
+
2
−
0
Voir le fichier @
91f4cb0e
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#include
<lektor/config.h>
#include
<lektor/config.h>
#include
<lektor/net.h>
#include
<lektor/net.h>
#include
<lektor/database.h>
#include
<lektor/database.h>
#include
<mthread/mthread.h>
#include
<stdio.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdlib.h>
#include
<unistd.h>
#include
<unistd.h>
...
@@ -56,6 +57,7 @@ main(int argc, char *argv[])
...
@@ -56,6 +57,7 @@ main(int argc, char *argv[])
normal_launch:
normal_launch:
fprintf
(
stderr
,
" * Lektor launched by user %s (shell: %s, home: %s)
\n
"
,
fprintf
(
stderr
,
" * Lektor launched by user %s (shell: %s, home: %s)
\n
"
,
pw
->
pw_name
,
pw
->
pw_shell
,
pw
->
pw_dir
);
pw
->
pw_name
,
pw
->
pw_shell
,
pw
->
pw_dir
);
mthread_init
();
return
lkt_listen
();
return
lkt_listen
();
}
}
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter