How to synchronized a function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I am a newpie for VB NET

I want to synchronized a function, but I do not hot to do it?

In Java,

public synchronized void function(....)
{
.....
}

how to do in VS.NET 2003

Public Sub Function(.....)
??sync(this){
??}
EndSub

Thanks
 
Hi, I am a newpie for VB NET

I want to synchronized a function, but I do not hot to do it?

In Java,

public synchronized void function(....)
{
.....

}

how to do in VS.NET 2003

Public Sub Function(.....)
??sync(this){
??}
EndSub

Thanks

You want to look at the SyncLock statement.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top