mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-09 22:30:57 +00:00
curl_global_init
git-svn-id: http://s3fs.googlecode.com/svn/trunk@114 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
4104189eba
commit
c98d9be724
@ -1234,6 +1234,7 @@ s3fs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset,
|
||||
static void*
|
||||
s3fs_init(struct fuse_conn_info *conn) {
|
||||
printf("init\n");
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
pthread_mutex_init(&curl_handles_lock, NULL);
|
||||
pthread_mutex_init(&s3fs_descriptors_lock, NULL);
|
||||
pthread_mutex_init(&stat_cache_lock, NULL);
|
||||
@ -1243,6 +1244,7 @@ s3fs_init(struct fuse_conn_info *conn) {
|
||||
static void
|
||||
s3fs_destroy(void*) {
|
||||
printf("destroy\n");
|
||||
curl_global_cleanup();
|
||||
pthread_mutex_destroy(&curl_handles_lock);
|
||||
pthread_mutex_destroy(&s3fs_descriptors_lock);
|
||||
pthread_mutex_destroy(&stat_cache_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user