summaryrefslogtreecommitdiff
path: root/src/_counter.h
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-12 16:11:21 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-12 16:43:18 -0400
commit2150aca61f27dc80981a914d2b11c038e84b0c87 (patch)
tree506097d893e2804b1b919a4ad08d6a4c50b032df /src/_counter.h
parentacf6183a53e2ce8849bc27afd51991babe69338d (diff)
downloadpycrypto-2150aca61f27dc80981a914d2b11c038e84b0c87.tar.gz
Release the global interpreter lock during encryption, decryption, and hashing.
These are the easy ones. We don't release the GIL on cipher initialization, hash initialization, or hash finalization, because those functions might make Python API calls, and we would need to add a mechism for re-acquiring the GIL in those cases.
Diffstat (limited to 'src/_counter.h')
-rw-r--r--src/_counter.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/_counter.h b/src/_counter.h
index af401cd..faaf63f 100644
--- a/src/_counter.h
+++ b/src/_counter.h
@@ -39,7 +39,6 @@ typedef struct {
int shortcut_disabled; /* This gets set to a non-zero value when the shortcut mechanism is disabled */
int carry; /* This gets set by Counter*Object_increment when the counter wraps around */
int allow_wraparound; /* When this is false, we raise OverflowError on next_value() or __call__() when the counter wraps around */
- int (*check_wraparound_func)(void *); /* Pointer to the functon that checks for overflow. Returns zero and sets OverflowError if the check fails. */
} PCT_CounterObject;
#endif /* PCT__COUNTER_H */