Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiAP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public Task ConnectAsync()
{
throw new ObjectDisposedException("Invalid AP instance (Object may have been disposed or released)");
}
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -309,7 +309,7 @@ public Task ConnectWpsAsync(WpsInfo info)
throw new ObjectDisposedException("Invalid AP instance (Object may have been disposed or released)");
}

TaskCompletionSource<bool> wpsTask = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> wpsTask = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
_wpsTaskMap[_apHandle] = wpsTask;

IntPtr id;
Expand Down Expand Up @@ -407,7 +407,7 @@ public Task ConnectWpsAsync(WpsInfo info)
public static Task<WiFiAP> ConnectWpsWithoutSsidAsync(WpsInfo info)
{
Log.Info(Globals.LogTag, "ConnectWpsWithoutSsidAsync");
wpsWithoutSsidTask = new TaskCompletionSource<WiFiAP>();
wpsWithoutSsidTask = new TaskCompletionSource<WiFiAP>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (s_callbackMap)
{
Expand Down Expand Up @@ -536,7 +536,7 @@ public Task DisconnectAsync()
{
throw new ObjectDisposedException("Invalid AP instance (Object may have been disposed or released)");
}
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -638,7 +638,7 @@ public Task ForgetAPAsync()
{
throw new ObjectDisposedException("Invalid AP instance (Object may have been disposed or released)");
}
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down
16 changes: 8 additions & 8 deletions src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiManagerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ internal WiFiAP GetConnectedAP()
internal Task ActivateAsync()
{
Log.Info(Globals.LogTag, "ActivateAsync");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -362,7 +362,7 @@ internal Task ActivateAsync()
internal Task ActivateWithWiFiPickerTestedAsync()
{
Log.Info(Globals.LogTag, "ActivateWithWiFiPickerTestedAsync");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -408,7 +408,7 @@ internal Task ActivateWithWiFiPickerTestedAsync()
internal Task DeactivateAsync()
{
Log.Info(Globals.LogTag, "DeactivateAsync");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -454,7 +454,7 @@ internal Task DeactivateAsync()
internal Task ScanAsync()
{
Log.Info(Globals.LogTag, "ScanAsync");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -500,7 +500,7 @@ internal Task ScanAsync()
internal Task ScanSpecificAPAsync(string essid)
{
Log.Info(Globals.LogTag, $"ScanSpecificAPAsync {essid}");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -546,7 +546,7 @@ internal Task ScanSpecificAPAsync(string essid)
internal Task BssidScanAsync()
{
Log.Info(Globals.LogTag, "BssidScanAsync");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -599,7 +599,7 @@ internal void SetAutoScanMode(int scanMode)
internal Task HiddenAPConnectAsync(string essid, int secType, string passphrase)
{
Log.Info(Globals.LogTag, "HiddenAPConnect");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down Expand Up @@ -667,7 +667,7 @@ internal void SetSpecificScanFreq(int freq)
internal Task StartMultiScan()
{
Log.Debug(Globals.LogTag, "StartMultiScan");
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>();
TaskCompletionSource<bool> task = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
IntPtr id;
lock (_callback_map)
{
Expand Down
Loading