Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which thread does amsmb2 run on #85

Open
seventeenYear opened this issue Aug 19, 2022 · 1 comment
Open

Which thread does amsmb2 run on #85

seventeenYear opened this issue Aug 19, 2022 · 1 comment
Labels
question Further information is requested

Comments

@seventeenYear
Copy link

seventeenYear commented Aug 19, 2022

 let credential = URLCredential(user: user, password: password, persistence: URLCredential.Persistence.forSession)
        client = AMSMB2(url: self.serverURL, credential: credential)!
        
        // AMSMB2 can handle queueing connection requests
        client?.connectShare(name: self.share) { error in
            if let error = error {
                print("SMBClient ConnectShare",error);
            }
        }

The above is the code for initializing and connecting SMB. I want to know which thread this is running on? How can I set it to run on other threads? Can I use multiple threads to read files?

@amosavian
Copy link
Owner

The underlying library libsmb2 uses Non-Blocking IO mechanism and does not block any thread.

@amosavian amosavian added the question Further information is requested label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants