File: threading.py

package info (click to toggle)
m2crypto 0.20.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,360 kB
  • ctags: 3,566
  • sloc: python: 19,545; makefile: 69; ansic: 18; sh: 17
file content (20 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
M2Crypto threading support, required for multithreaded applications. 

Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""

# M2Crypto
import m2

def init():
    """
    Initialize threading support.
    """
    m2.threading_init()

def cleanup():
    """
    End and cleanup threading support.
    """
    m2.threading_cleanup()